Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Only Showing Readability Statistics.

Only Showing Readability Statistics

by Allen Wyatt
(last updated June 30, 2016)

10

When you do a grammar check on your document, the very last step performed by Word is to display a set of readability statistics that you can use to analyze the presentation of your content. There may be times when you want to only display the readability statistics, without going through the complete grammar check first. Unfortunately, Word does not provide a way to do this. You can, however, create a macro that will display the readability statistics quite nicely. The heart of such a macro would be the ReadabilityStatistics collection.

To get an idea how such a macro could be written, consider the following single-line macro:

Sub CheckTest()
    MsgBox ActiveDocument.Content.ReadabilityStatistics(9).Value
End Sub

This macro displays a number that represents the Flesch Reading Ease value, ninth member of the ReadabilityStatistics collection. There are 10 individual elements in the collection, as follows:

Index Meaning
1 Words
2 Characters
3 Paragraphs
4 Sentences
5 Sentences per Paragraph
6 Words per Sentence
7 Characters per Word
8 Passive Sentences
9 Flesch Reading Ease
10 Flesch-Kincaid Grade Level

To display all ten statistics (as would be done in a complete grammar check of your document), all you need to do is have your macro step through the various members of the collection and display their values. The following macro does just that:

Sub Readability()
    Dim DocStats As String
    Dim MBTitle As String
    Dim J As Integer

    MBTitle = "Readability Statistics"
    DocStats = ""
    With ActiveDocument.Content
        For J = 1 to 10
            DocStats = DocStats & .ReadabilityStatistics(J)
            DocStats = DocStats & ": "
            DocStats = DocStats & .ReadabilityStatistics(J).Value
            DocStats = DocStats & vbCrLf
        Next J
    End With
    MsgBox DocStats, vbOKOnly, MBTitle
End Sub

When you run the macro, understand that it takes a bit of time to run. In fact, depending on the speed of your system, the length of your document, and its complexity, it can take quite a bit of time to run. Be patient; once the ten statistics are completed, they are displayed on the screen.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1784) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Only Showing Readability Statistics.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Extra Shaded Lines

Put a page break at the beginning of a shaded paragraph and you may be surprised at what you get on your printout. This tip ...

Discover More

Viewing Formulas in Table Cells

Word allows you to insert simple formulas, using fields, in table cells. If you want to see these formulas in their entirety, ...

Discover More

Converting Strings to Numbers

When working with data in a macro, there are two broad categories you can manipulate: numbers and text. Sometimes you need to ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

More WordTips (menu)

Limiting Spell Checking

Spell check a document, and Word normally checks several different dictionaries. Here's how to limit the dictionary consulted ...

Discover More

Setting Grammar-Checking Options

When Word checks the grammar it thinks you are using in your prose, it follows a set of rules. Fortunately the program allows ...

Discover More

Normal Words Flagged by Spell Check

What do you do when Word's spelling check marks some common, everyday words as wrong? Here are some ideas of places you can ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 8Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 4?

2017-08-19 17:51:48

Adde

Thank you! Your suggestions about Readability and WordFrequency are very, very helpful. Now I just have to learn how to save the macros in WORD to access in the future! Thank you again.


2017-07-04 09:53:06

Adel

Hi,

This is great but cannot get it to work in MS 2016. I am getting a:

Run-time error "5941 (the requested member of the collection does not exist


The following line is being highlighted in yellow in debug mode:

DocStats = DocStats & .ReadabilityStatistics(J)

Any ideas?

Many thanks in advance


2017-07-04 08:38:39

Adel

Hi,

This is great but cannot get it to work in MS 2016. I am getting a:

Run-time error "5941 (the requested member of the collection does not exist


The following line is being highlighted in yellow in debug mode:

DocStats = DocStats & .ReadabilityStatistics(J)

Any ideas?

Many thanks in advance


2017-04-28 07:55:58

Seth Lindberg

This works real well, but in MS Word 2016 there are only 9 (not 10) options; the passive sentence count has been removed. You'll get an error if you do not reduce the J count to 9.


2016-07-26 05:27:37

Terje

This macro is great but it did not show passive sentences the same way as word. For example "The cat was chased by the dog". is show as 0 passive. (Using Word 2013). Any suggestions would much appreciated.
Terje


2015-06-25 09:20:31

Ken Endacott

Sonja,

The Content property is only available for all of a document.

You would need to copy the text into a blank document then run the macro on that document.


2015-06-24 11:52:21

Sonja Rummell

Hi there,
This macro is great and has seriously helped me with some research I am doing. I'm just wondering whether there is a way to apply it to selected text only? Thanks so much!


2012-08-29 10:35:53

jeremy davis

Duh. I just read the rest of the info on the page. I'll try the one for Word 2007 now. Thanks, jeremy


2012-08-29 10:34:41

jeremy davis

I just implemented this macro on Word 2007 and tried it on a short document. The results are quite different from the results obtained from running readability through spell check. Any ideas why that would be? Also, passive sentences comes up as 0 even though the word stats show 40%.

Thanks, Jeremy


2012-08-21 03:59:47

Nigel Benetton

This is very clever, and answers the irritation of having to waste time running the grammar & style checker before Microsoft gives you the statistics. I have a 168 000 word doc, for example, and there was no way I was going to spend hours clicking 'ignore' before I got to the readability statistics. Instead the macro took 4 seconds: I now have to work out what the results mean! Thanks for working this out and sharing it with us. Best wishes, Nigel


This Site

Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.