A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old November 16th, 2009, 03:07 AM posted to microsoft.public.word.pagelayout
CR
external usenet poster
 
Posts: 24
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  
Old November 16th, 2009, 07:08 AM posted to microsoft.public.word.pagelayout
Doug Robbins - Word MVP
external usenet poster
 
Posts: 8,239
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  
Old November 16th, 2009, 10:57 AM posted to microsoft.public.word.pagelayout
macropod[_2_]
external usenet poster
 
Posts: 2,402
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?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.