Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2007

Tip: Looking for answers? Try searching our database.

Get Total Pages of a doc

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vbaNOOB - 26 Apr 2007 09:32 GMT
Hi

Is there any way that I can get the total number of page in doc ?

Many Thanks
Stefan Blom - 26 Apr 2007 09:44 GMT
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.

Signature

Stefan Blom
Microsoft Word MVP

> Hi
>
> Is there any way that I can get the total number of page in doc ?
>
> Many Thanks
Helmut Weber - 25 Aug 2007 23:20 GMT
hi,

MsgBox ActiveDocument.ComputeStatistics(wdStatisticPages)

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

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


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.