Article ID: 185513
Article Last Modified on 6/17/2005
Sub GetNumberOfPages()
ActiveDocument.Repaginate
MsgBox ActiveDocument.BuiltInDocumentProperties(wdPropertyPages)
End Sub
NOTE: To see a list of the wdBuiltInProperty constants, follow these steps:
Sub GetNumberOfPages()
ActiveDocument.Repaginate
MsgBox ActiveDocument.BuiltInDocumentProperties("Number of Pages")
End Sub
NOTE: For more information about literal values, from the Visual Basic
Editor click the Office Assistant, type document property object, click
Search, and then click to view "DocumentProperty Object."
176476 OFF: Office Assistant Not Answering Visual Basic Questions
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: wordcon 8.00 count statistic test wdStatistic word98 vba information macword
Keywords: kbinfo kbconversion kbconvert KB185513