Syntax 1: Returns a statistic based on the contents of the specified document.
Syntax 2: Returns a statistic based on the contents of the specified range.
Syntax 1
expression.ComputeStatistics(Statistic, IncludeFootnotesAndEndnotes)
Syntax 2
expression.ComputeStatistics(Statistic)
expression Syntax 1: Required. An expression that returns a Document object.
Syntax 2: Required. An expression that returns a Range object.
Statistic Required Long. The statistic. Can be one of the following WdStatistic constants: wdStatisticCharacters, wdStatisticCharactersWithSpaces, wdStatisticFarEastCharacters, wdStatisticLines, wdStatisticPages, wdStatisticParagraphs, or wdStatisticWords.
IncludeFootnotesAndEndnotes Optional Variant. True to include footnotes and endnotes when computing statistics. If this argument is omitted, the default value is False.
Remarks
Some of the constants listed above may not be available to you, depending on the language support (U.S. English, for example) that you’ve selected or installed.