Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Long Documents / March 2004

Tip: Looking for answers? Try searching our database.

Footer on Last Page only

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
patterson - 16 Jan 2004 16:24 GMT
Here is a good one:
I have a user who wants to put a Footer at the end of his documents no
matter how many pages they are, he just wants it on the last page. I
have a Macro to put the Footer, but if the document is more than 2
pages, the Footer ends up on all pages except the first. Any ideas?

------------------------------------------------
Greg Maxey - 17 Jan 2004 06:25 GMT
Patterson,

How about a conditional IF field.

{ IF { PAGE } = { NUMPAGES } "Your Footer Text" }

Signature

Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
To e-mail, edit out the "w...spam" in gmaxey@whamspammvps.org

> Here is a good one:
> I have a user who wants to put a Footer at the end of his documents no
[quoted text clipped - 6 lines]
> ~~View and post usenet messages directly from
> http://www.ExcelForum.com/
Jonathan - 31 Mar 2004 05:31 GMT
what does this code mean

{ IF { PAGE } = { NUMPAGES } "Your Footer Text"

jonatha
Greg Maxey - 31 Mar 2004 05:46 GMT
It means that "IF" the page number { Page } is the same as the total number
of pages in your document { NumPages } "THEN" insert "Your footer text"
"ELSE" insert nothing.

Signature

Greg Maxey
A peer in "peer to peer" support
Rockledge, FL
To e-mail, edit out the "w...spam" in gmaxey@whamspammvps.org

> what does this code mean?
>
> { IF { PAGE } = { NUMPAGES } "Your Footer Text" }
>
> jonathan
Jonathan - 31 Mar 2004 06:46 GMT
What I need to know is how do get the 'file and path' put only on the last page and not on every page of word document

I do not understand what your last reply meant?

It means that "IF" the page number { Page } is the same as the total number
of pages in your document { NumPages } "THEN" insert "Your footer text"
"ELSE" insert nothing.
Graham Mayor - 31 Mar 2004 08:07 GMT
This is a conditional field.
Open the header/footer view and in the place you want the footer text to
appear on that last page press CTRL+F9
This will produce two curly brackets {}
Between the curly brackets type the field information (using CTRL+F9 for
each pair of curly brackets) to give you the following:

{IF{Page} = {Numpages} "{Filename /p}"}

Press F9 to update the field and ALT+F9 to display the result.

Whatever you entered where indicated between the speech marks - here the
filename and path - will be displayed in the footer on the last page. Note
that there is no filename and path to display until you save the document -
until then  you will get Document1 etc.

Signature

<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
    Graham Mayor -  Word MVP

     Web site www.gmayor.com
 Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>

> What I need to know is how do get the 'file and path' put only on the
> last page and not on every page of word document.
[quoted text clipped - 5 lines]
> of pages in your document { NumPages } "THEN" insert "Your footer
> text" "ELSE" insert nothing.
Dayo Mitchell - 31 Mar 2004 14:19 GMT
Fields, which are denoted by curly brackets, work kinda like formulas in
Excel.  You tell Word a formula, and it produces text according to that
formula.  By hitting alt-F9, you can toggle between seeing the formula and
its result.

Maybe that helps?
DM

> This is a conditional field.
> Open the header/footer view and in the place you want the footer text to
[quoted text clipped - 21 lines]
>> of pages in your document { NumPages } "THEN" insert "Your footer
>> text" "ELSE" insert nothing.
Suzanne S. Barnhill - 31 Mar 2004 16:34 GMT
Actually, after the first Ctrl+F9, you can use Word's built-in buttons for
the rest:

1. Press Ctrl+F9 to get the field delimiters:

   { }

2. Between the braces, type IF and =:

   { IF = }

3. Between IF and =, press the Insert Page Number button on the Header and
Footer toolbar:

   { IF { PAGE } = }

4. After =, press the Insert Number of Pages button:

   { IF { PAGE } = { NUMPAGES } }

5. Type a space, then insert the "Filename and path" AutoText entry from the
menu on the toolbar:

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

Note that unless you have field codes displayed, you may see the actual page
number and number of pages and filename instead of the fields shown above.
Press Alt+F9 to display field codes (and again to hide them). Quotation
marks around the TrueText are not required for fields. For more on this
field construction, see Word's Help under "Field codes: If field"

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Signature

Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


> This is a conditional field.
> Open the header/footer view and in the place you want the footer text to
[quoted text clipped - 29 lines]
> > of pages in your document { NumPages } "THEN" insert "Your footer
> > text" "ELSE" insert nothing.
jujuwillis - 17 Jan 2004 10:19 GMT
Have you considered using an Endnote? (Insert>Footnote>Endnote)
Then no matter how long the document is, it will be at the end
Dorothy Taylor - 19 Jan 2004 01:42 GMT
Just use section breaks - whether you have one page or
many.  This will only work if you always have a template
document where you only use two sections in the entire
document.  This way, you put a "next page" section break
on page one and then you have two separate footers.  
The second footer will always display the relevant
information.  If your document only has information for
one page, you just leave page one "intentionally blank".

>-----Original Message-----
>
[quoted text clipped - 7 lines]
>
>~~View and post usenet messages directly from
http://www.ExcelForum.com/

>.
Suzanne S. Barnhill - 19 Jan 2004 05:25 GMT
This doesn't answer the question the OP asked, which was how to have a
footer only on the last page. Although this could be done with a section
break, there are other ways to do it (which have already been posted). To do
what you suggest does not require a section break, only the "Different first
page" setting on the Layout tab of Page Setup.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Signature

Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


> Just use section breaks - whether you have one page or
> many.  This will only work if you always have a template
[quoted text clipped - 23 lines]
> >
> >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.