Link to home
Start Free TrialLog in
Avatar of BritaJ
BritaJFlag for United States of America

asked on

Include a footer on only the last page of a variable size word document

I have a document which needs to have a footer on the last page only.  I can't use the usual section brake solution because the document is of variable length, depending on which "boiler plate" paragraphs are included.
From what I have read it looks like I might have to add some visual basic to the document to get it to work.  I have never done this, so I will need some very simple instructions.

Thanks,
Brita
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Visual basic could probably do it, but it is not a very good solution, because it might need to be re-run after any change, including a change of printer (driver).

You really need to use an { IF... }  field with embedded { PAGE } and { NUMPAGES } fields:

{ IF {Page} = {Numpages} "last page footer" "other page footer"}
Avatar of BritaJ

ASKER

Gram,
That looks great, but word isn't my speciality and I don't understand how to make this show up in the footer.  I copy and past that into the footer, but it just shows that text not the result.
Are there some sort of steps to put code into the footer?

Thanks,
Brita
Avatar of BritaJ

ASKER

Graham,
I figured out how to make it show up, but it is not working.  It keeps just saying "other page footer" even on the last page.  
 
Any ideas?

Thanks,
Brita
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not the world's greatest typist myself. This:

"It is a bit easiet to type in the outer parr first:"

should be


"It is a bit easier to type in the outer pair first:"

Sorry about that
My last two comment didn't see your last comment at 22:30 GMT. I'll try to address it in a minute
Avatar of BritaJ

ASKER

Graham,
Your last post was correct.  I didn't understand about the CTRL F9.  I just inserted a new page then edited the it using regular {} not the ones created by CTRL F9.  Once I used that it works GREAT!!!!

Thanks soooooo much for your help.
I had been tearing my hair out for hours and no one around here had any idea how to help.

Thanks again,
Brita

Avatar of BritaJ

ASKER

Graham is Great!  He deserves the title of Genius.