View Single Post
  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Stefan Blom[_3_] Stefan Blom[_3_] is offline
external usenet poster
 
Posts: 6,897
Default Page Number Totals

Clever trick!

--
Stefan Blom
Microsoft Word MVP



"macropod" wrote in message
...
Hi Stefan,

A simpler solution:
{={NUMPAGES}-1 \# 0;;}

--
Cheers
macropod
[Microsoft MVP - Word]


"Stefan Blom" wrote in message
...
Activate the header/footer view, for example by doubleclicking on the
footer. Then press Alt+F9 to show field codes. Replace { NUMPAGES } with
{ = { NUMPAGES } - 1 }. To insert each pair of field delimiters, press
Ctrl+F9. Type the code as shown. When you are done, select the field
construct and press F9. Press Alt+F9 again to hide field codes.

Note that if you have a one page file, the field I suggested above will
obviously display zero. You may want to use the following field construct
instead:

{ IF { NUMPAGES } 2 "" "{ = { NUMPAGES } - 1 }" }

This conditional field displays nothing (the empty string) if the number
of pages is less than 2.

--
Stefan Blom
Microsoft Word MVP



"Galil" wrote in message
...
When you are using page x of y in a footer and you are eliminating the
page
number on the first page, how do you elimiate it from calculating the
total
pages of the document? The "y" is using the first page to calculate the
total
number of pages. It is a template, so I don't want to hardcode the page
number. I want it to autocalculate as the template is being used.