Results 1 to 3 of 3
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    total count of pages in a document (OfficeXP SP3)

    Hi

    How do I find out the total pages in a document. I cant seem to find the code.
    I can find sections eg
    x = ActiveDocument.Sections.Count

    Or do I need to obtain the total Pages from the Word field NUMPages?

    diana

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: total count of pages in a document (OfficeXP SP3)

    Try ActiveDocument.Content.ComputeStatistics(wdStatist icPages) - see Determine the number of pages in a document on the Word MVP site.

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Melbourne, Australia
    Posts
    1,294
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: total count of pages in a document (OfficeXP SP3)

    thanks hans...diana :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •