PDA

Click to See Complete Forum and Search --> : Page Counter in Word


LodBot
Jul 2nd, 2004, 05:58 PM
How could I program a VBA macro to count the number of pages in a word document?

Thanks in advance.

BrianB
Jul 8th, 2004, 09:45 AM
Sub page_count()
MsgBox (ActiveDocument.Range.Information(wdNumberOfPagesInDocument))
End Sub