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"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top