Reply
 
Thread Tools Display Modes
  #1   Report Post  
Walter Alexander
 
Posts: n/a
Default How can I put a footer on the last page and make it a macro?

I need to create a macro that will insert a footer containing filename and
pathname only on the last page of a document.

Can anyone help?
  #2   Report Post  
Jay Freedman
 
Posts: n/a
Default

Walter Alexander wrote:
I need to create a macro that will insert a footer containing
filename and pathname only on the last page of a document.

Can anyone help?


You do NOT need a macro. You need a special field in the footer that
displays a result only on the last page, as explained at
http://gregmaxey.mvps.org/Conditiona...rs_Footers.htm. For your purpose,
the field code should be

{ IF {PAGE} = {NUMPAGES} {FILENAME \p} }

The article shows how to create nested fields (fields inside of fields).

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


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
How did the first page footer end up on the third page as well? Caroline Microsoft Word Help 2 August 19th 05 02:15 AM
Start at: page numbering not working Blaise Page Layout 3 July 9th 05 06:09 PM
How can I automatically make Word scroll page down??? faderjason Page Layout 1 March 21st 05 09:49 PM
How to make the full page of graphic to a fix position. gc Microsoft Word Help 1 January 18th 05 02:29 PM
Page Layout for 4.25" X 5.5" Booklet-- How to Make Easy to Col Jason Page Layout 2 January 3rd 05 11:17 PM


All times are GMT +1. The time now is 09:43 AM.

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"