#1   Report Post  
Posted to microsoft.public.word.docmanagement
Galil Galil is offline
external usenet poster
 
Posts: 2
Default Page Number Totals

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.
  #2   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

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.



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


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.



  #4   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Page Number Totals

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.



  #5   Report Post  
Posted to microsoft.public.word.docmanagement
macropod[_2_] macropod[_2_] is offline
external usenet poster
 
Posts: 2,059
Default Page Number Totals

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.





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



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



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
Hash Totals bretsharon Microsoft Word Help 2 December 22nd 09 06:11 AM
Sum totals from Different tables [email protected] Tables 1 March 30th 09 10:14 PM
How do I combine page totals with different sections & layouts? Pat M. Page Layout 1 February 2nd 07 03:15 AM
Totals with Table Roger Tables 1 April 26th 06 07:37 PM
Page numbering in footers, Outside margin, Page Number + Number of Pages Eric G Page Layout 6 April 22nd 05 12:28 PM


All times are GMT +1. The time now is 08:09 PM.

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"