Class ReadabilityStatistic (Word VBA)

The class ReadabilityStatistic represents one of the readability statistics for a document or range. The ReadabilityStatistic object is a member of the ReadabilityStatistics collection. To use a ReadabilityStatistic class variable it first needs to be instantiated, for example


Dim rsc as ReadabilityStatistic
Set rsc = ActiveDocument.Range.ReadabilityStatistics(Index:=1)

For Each

Here is an example of processing the ReadabilityStatistic items in a collection.


Dim rsc As ReadabilityStatistic
For Each rsc In ActiveDocument.Range.ReadabilityStatistics
	
Next rsc

Name

Returns the name of the specified object.


Dim strName As String
strName = ActiveDocument.Range.ReadabilityStatistics(1).Name

Value

Returns the value of the grammar statistic.


ActiveDocument.CheckGrammar 
MsgBox ActiveDocument.ReadabilityStatistics( _ 
 "Flesch Reading Ease").Value