There's a slightly less risky method:
- Insert a bookmark on the last page of the frontmatter. Let's say you name
it FMLast.
- In the page numbering, use the field
{ = { NUMPAGES } - { PAGEREF FMLast } }
The PAGEREF field's result is the page number where the bookmark occurs, so
as long as that's always the last page of the frontmatter section, the
calculation will work correctly.
The risk is that editing in the frontmatter section might either delete the
bookmark or add more material after it so it's no longer on the last page.
To minimize this risk, check Tools Options View Bookmarks during any
editing so you can see the bookmark. If the bookmark is deleted, the page
numbers will all say "!Syntax Error, !"
--
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.
bufossil wrote:
I am using Word 2003 SP2 and Windows XP SP2.
I have a client who can't grasp the concept that the total page count
includes the front matter. All the client sees is that the very last
page of the printed document says, "Page 152 of 157." The client
says, "This document is missing 5 pages."
Is there a way to have the Number of Pages tool in Word ignore the
page count in the Front Matter? The document has several sections,
so it must count all sections except the first one.
For now I am using a Field Code with the formula { = { NUMPAGES }-5
}, but that approach is risky because the page count in the front
matter might eventually change.
Any ideas would be appreciated.
Tim Munyon