Results 1 to 2 of 2

Thread: Page Counter in Word

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2003
    Location
    Los Angeles, CA
    Posts
    49

    Page Counter in Word

    How could I program a VBA macro to count the number of pages in a word document?

    Thanks in advance.

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    Code:
    Sub page_count()
        MsgBox (ActiveDocument.Range.Information(wdNumberOfPagesInDocument))
    End Sub
    Regards
    BrianB
    -------------------------------

Posting Permissions

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



Click Here to Expand Forum to Full Width