Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
CR CR is offline
external usenet poster
 
Posts: 4
Default page number, total pages, section page number and total section pa

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?


  #2   Report Post  
Posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP Doug Robbins - Word MVP is offline
external usenet poster
 
Posts: 8,832
Default page number, total pages, section page number and total section pa

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.
"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?



  #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?



Reply
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 total shows total for entire document not each section total. Confused student Page Layout 2 October 29th 09 09:13 PM
Printing total number of pages in a section Katie Microsoft Word Help 2 December 15th 05 11:47 PM
Page X of Y, where Y is total # of pages in section... Raymond Microsoft Word Help 2 August 17th 05 12:41 AM
Printing Page # of total pages in section prints Page 1 of 1, Pag. Penny Edwards Microsoft Word Help 1 March 15th 05 11:48 PM
section page numbers in heading and total page number in footing Desparate Word user Microsoft Word Help 4 January 7th 05 10:01 PM


All times are GMT +1. The time now is 11:32 AM.

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

About Us

"It's about Microsoft Word"