Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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 | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Hash Totals | Microsoft Word Help | |||
Sum totals from Different tables | Tables | |||
How do I combine page totals with different sections & layouts? | Page Layout | |||
Totals with Table | Tables | |||
Page numbering in footers, Outside margin, Page Number + Number of Pages | Page Layout |