Class ReadabilityStatistics (Word VBA)

A collection of ReadabilityStatistic objects for a document or range. To use a ReadabilityStatistics class variable it first needs to be instantiated, for example


Dim rss as ReadabilityStatistics
Set rss = ActiveDocument.Range.ReadabilityStatistics

For Each

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


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

Count

Returns a Long that represents the number of readability statistics in the collection.


Dim lngCount As Long
lngCount = ActiveDocument.Range.ReadabilityStatistics.Count

Item

Returns an individual ReadabilityStatistic object in a collection.

Item (Index)

Index: The individual object to be returned. Can be a Long indicating the ordinal position or a String representing the name of the individual object.


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