vba word page count in code?

  • Thread starter Thread starter Keith G Hicks
  • Start date Start date
K

Keith G Hicks

using word 03 and ms Access 2k

I have:

Private objWord As Word.Application
Private docWord As Word.Document

Most everything works fine but I need a page count after constructing the
document. I cannot find how to do this.

Keith
 
Keith said:
using word 03 and ms Access 2k

I have:

Private objWord As Word.Application
Private docWord As Word.Document

Most everything works fine but I need a page count after constructing
the document. I cannot find how to do this.

Keith

Dim pageCount As Long
pageCount = docWord.ComputeStatistics(wdStatisticPages)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Cool. Thanks. :-)

Jay Freedman said:
Dim pageCount As Long
pageCount = docWord.ComputeStatistics(wdStatisticPages)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

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

Back
Top