Get Total Pages of a doc

S

Stefan Blom

You can use the Information property. For example:

Debug.Print ActiveDocument.Content _
.Information(wdNumberOfPagesInDocument)

If you want to display the number of pages in a document, insert the
NUMPAGES field.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
H

Helmut Weber

hi,

MsgBox ActiveDocument.ComputeStatistics(wdStatisticPages)

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
Top