View Single Post
  #3   Report Post  
Posted to microsoft.public.word.pagelayout
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default page number, total pages, section page number and total section pa

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.

--
Cheers
macropod
[Microsoft MVP - Word]


"CR" wrote in message ...
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?