Obviously, you can use the NUMPAGES field to get the total number of
pages and the SECTIONPAGES field to get the number of pages in a
section.
The PAGE field displays the page number based on the settings in the
Page Number Format dialog box.
In other words, assuming that you are restarting numbering in each
section, the PAGE field will display the correct "section page"
number. The absolute page number can then be calculated as follows,
assuming that you bookmark each SECTIONPAGES field:
For the section 1 header (or footer) there are no complications:
Page { PAGE } of { SECTIONPAGES }
Absolute page number: { PAGE } of { NUMPAGES }
Section 2 header (footer):
Page { PAGE } of { SECTIONPAGES }
Absolute page number: { = { PAGE } + { REF Sec1Count } } of {
NUMPAGES }
Section 3 header (footer):
Page { PAGE } of { SECTIONPAGES }
Absolute page number: { = { PAGE } + { REF Sec1Count } + { REF
Sec2Count } } of { NUMPAGES }
[etc.]
The Sec1Count and Sec2Count are bookmarks enclosing the SECTIONPAGES
fields in sections 1 and 2, respectively.
--
Stefan Blom
Microsoft Word MVP
in message
news:
[email protected]...