Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.word.pagelayout
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Total Page Number Minus Number of Pages in Front Matter

There are two possible situations:

- If the document contains only two sections (separated by one section
break), then you can simply change the field that supplies the total. If you
right-click the total number and choose Toggle Field Codes, you'll see the
field code {NUMPAGES}. Change that to {SECTIONPAGES} and press F9 (or
right-click and choose Update Field) to show the result. This will now be
the total number of pages in the section that contains the body.

- If the body of the document consists of two or more sections (not counting
the frontmatter section), then the SECTIONPAGES field won't work -- it would
show the total of pages in the current section, which would change part way
through the body. Instead, first insert a bookmark in the last paragraph of
the document -- I suggest naming it LastPage. Now right-click the total
number in the page numbering and choose Toggle Field Codes. Replace the word
NUMPAGES with this:

PAGEREF LastPage

(If you named the bookmark something else, use that in the field code.)
Press F9 to update the field, which will show the page number of the last
page in the body.

There's a minor difficulty with this: It's easy to overwrite and delete the
bookmark, in which case the field will display "Error! Bookmark not
defined." Then you have to go back to the end of the document and insert the
bookmark again. It's also easy to add more pages after the bookmark, in
which case the page numbering will be wrong, and you'll have to move the
bookmark (which you do by going to the end of the document and inserting the
same bookmark, which automatically deletes the old one). It helps to go into
the Options dialog and check the box to display bookmarks at all times.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Rhonda wrote:
I have a document with 4 pages of front matter (cover page and table
of contents) and then 42 pages of text in the body of the document.
I have the pages of the body numbered "Page X of Y", but the Y is the
total pages of the entire document (46) and I want it to represent Y
minus the pages in the front matter (42) i.e. I want all my body
pages to actually say "Page 'X 'of 42" not "Page 'X' of 46". Of
course I could manually enter the number 42 in place of Y, but the
document will eventually be updated and additional pages will result
so I want it automated. (If the solution involves fields and
formulas, go slow I have no idea how to create new ones!)

Thanks so much!
Rhonda



 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
page number, total pages, section page number and total section pa CR Page Layout 2 November 16th 09 10:57 AM
Total number of pages to show in Word 2007 (Page # of #)? Beach Lover Microsoft Word Help 1 June 9th 08 06:46 PM
Need Total Page Count to Ignore Front Matter Pages bufossil Microsoft Word Help 6 April 8th 08 10:32 AM
blank page number in first seven pages of front matter jadziag Page Layout 1 August 15th 06 05:09 PM
How do I set up front pages in book then number bbook from page 1 Geoff Barrett Microsoft Word Help 1 May 14th 05 10:51 PM


All times are GMT +1. The time now is 07:21 AM.

Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"