Kathy said:
I have a simple document with footers on each page, and using the
page of page insert. The last page is an Exhibit and I do not want
the footer to show nor do I want the page of page in the previous
pages to say page 1 of 7 when actually it is page 1 of 6. How can I
correct this?
Here's one way (there are others, involving a section break between the main
text and the exhibit):
When you press Alt+F9 to toggle all field codes, you'll see that your
current footer says
Page {PAGE} of {NUMPAGES}
First modify the {NUMPAGES} field to display one less than the actual number
of pages: Type an equal sign to its left and the expression - 1 to its
right:
Page {PAGE} of = {NUMPAGES} - 1
Select from the equal sign to the 1 and press Ctrl+F9 to make a field with
that text inside:
Page {PAGE} of {= {NUMPAGES} - 1}
Now surround the whole thing with double quotes, and type to the left of it
to make this:
IF PAGE = NUMPAGES "" "Page {PAGE} of {= {NUMPAGES} - 1}"
Select the word PAGE and press Ctrl+F9 to make it a field; do the same with
NUMPAGES. The characters in the middle are two double-quotes with nothing
between them. Now you have
IF {PAGE} = {NUMPAGES} "" "Page {PAGE} of {= {NUMPAGES} - 1}"
Finally, select the whole thing and press Ctrl+F9 once more:
{IF {PAGE} = {NUMPAGES} "" "Page {PAGE} of {= {NUMPAGES} - 1}"}
Press Alt+F9 to collapse the field codes, and press F9 to update the field.
It should behave as you asked.
--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.