page number, total pages, section page number and total section pa

C

CR

I need to add the page number {Page}, total pages (NumPages), section page
number {Page} and total section pages {Section Pages} in one Word document.
But it fails. When I set the section page number, then the page number change
to the section page number.
How can I do?
 
D

Doug Robbins - Word MVP

To get both the page number of the total pages in the document and the page
number in the section, you will need to bookmark the end of each section and
use for the page number in the section a Field construction that subtracts
the { PAGEREF bookmarkname } from the { PAGE }

{ = { PAGE } - { PAGEREF bookmarknameforbookmarkatendofprevioussection } }

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
 
M

macropod

Hi CR,

For the X of Y Section page numbering, you can use a field coded as:
{QUOTE{IF{PAGE}= 1 {SET Section0 0}}
{IF{PAGE}<>{NUMPAGES} {IF{={SECTIONPAGES}+{REF {QUOTE Section{={SECTION}-1}}}}={PAGE} {SET {QUOTE Section{SECTION}} {PAGE}}}}
"Page {={PAGE}-{REF {QUOTE Section{={SECTION}-1}}}} of {SECTIONPAGES}"}

Note: The field brace pairs (ie '{ }') for the above example are created via Ctrl-F9 - you can't simply type them or copy & paste
them from this message.

For the X of Y Document page numbering, you can then use the standard {PAGE} & {NUMPAGES} fields.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top