Determine the number of pages in a document

Article contributed by Bill Coan

Solution #1:

Selection.Information(NumberOfPagesInDocument)

Solution #2:

ActiveDocument.BuiltInDocumentProperties("Number of Pages")

Solution #3:

ActiveDocument.Content.ComputeStatistics(wdStatisticPages)

 The third method is the most reliable, but the slowest.