Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2008

Tip: Looking for answers? Try searching our database.

Perform readability statistics

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Question Boy - 21 Feb 2008 13:52 GMT
Hello,

I know that I can get the readability statistics when I execute a grammar
check, but is there a way to simply execute the readability statistics
without running a complete grammar check.  Just run it on the text as is?  i
am specifically trying to get the Flesch score for a document at the click of
a button without any interaction on the behalf of the user.

Thank you,

QB
Jean-Guy Marcil - 21 Feb 2008 15:38 GMT
> Hello,
>
[quoted text clipped - 3 lines]
> am specifically trying to get the Flesch score for a document at the click of
> a button without any interaction on the behalf of the user.

Sub Readability()

Dim rsDoc As ReadabilityStatistic

Set rsDoc = ActiveDocument.Range.ReadabilityStatistics(9)

MsgBox "Readability for this document: " & rsDoc.Value & "."

End Sub

You may need to add code to make sure that the whole document is set to the
same language or an error will be generated.
Charlie Mac - 21 Feb 2008 20:22 GMT
QB,

Try this:

Dim rs As Variant ' ReadabilityStatistics, StatText as string
StatText = "Document Statistics:" & vbCr
For Each rs In Documents(1).ReadabilityStatistics
     StatText = StatText & rs.Name & " - " & rs.Value &  vbCr
Next rs
MsgBox StatText

Charlie in Texas

>Hello,
>
[quoted text clipped - 7 lines]
>
>QB
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.