Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word Footer on last page only 1

Status
Not open for further replies.

Eprice

Technical User
May 6, 2003
209
US
Hi,
I am setting up a word template that has our logo on page one in the header. I want to add a bussiness card and signature on the last page of the letter in the footer. Problem is I'm not sure if it will be a one page or two page letter. How can I do this so the header will only show on fist page and footer only shows on last page not knowing how may pages the letter will be? Thanks Lisa
 
There is no built-in way to put something on the last page (no 'different last page' option), and things get slightly more complex if you use 'different first page' for the header if the footer may sometimes want to be on the first page, and sometimes not.

The way to put conditional content in the footer is to use fields - something like:

[blue][tt]{IF { PAGE } = { NUMPAGES } "stuff for last page" "stuff for other pages" }[/tt][/blue]

and, given what I've said above, it may be as well do the same for the first page header:

[blue][tt]{IF { PAGE } = 1 "stuff for first page" "stuff for other pages" }[/tt][/blue]


Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
What if I just use a letterhead instead of our logo on the top then I would just have a footer. If they type too much and make it go to page two would the footer go to page two?
Lisa
 
Never mind that last comment, using letterhead is not an option for this template. Is there a way I can do it with vb since I'm adding more than one line of text. Such as making it visible or not on the first page.
Lisa
 
Lisa, you do not need VBA, do you not understand my reply?

In the header ...

Press Ctrl+F9
Inside the braces, type IF followed by a space
Press Ctrl+F9 again
Inside the new braces type PAGE
move the cursor to the right of the inner right brace
Type space, equal sign, space, one, double quote, double quote, space, double quote, double quote

Next place your cursor between the first pair of double quotes and then enter whatever you want on the first page header.

Repeat the process in the footer, except that, instead of typing one, press Ctrl+F9 and type NUMPAGES and then move the cursor past the immediate right brace and continue as above.

If you want separate elements in either header or footer that need to be positioned independently (one to the left, one to the right, perhaps) you might find it easier to wrap each in a separate "IF" Field construct.

Enjoy,
Tony

------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

I'm working (slowly) on my own website
 
Tony,
Yes that does work. Thanks for the help.
Lisa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top