Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-28-2014, 08:36 PM
Charles Kenyon Charles Kenyon is offline Can I program like a macro to add the filepath to the bottom of the final page? Windows 7 64bit Can I program like a macro to add the filepath to the bottom of the final page? Office 2010 32bit
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,581
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

The field that will print a page number only on the last page is:
{IF { PAGE } = { NUMPAGES } "{ PAGE }" }


This will only work if page numbering has not been restarted.

If you are restarting page numbering at the beginning of a section, then try the { SECTIONPAGES } field instead of { NUMPAGES }.


To create this field, on the last page of your document, type the field without the field codes (or copy from below and paste):
IF PAGE < NUMPAGES "PAGE"
Then select each PAGE and Press Ctrl+F9, then F9 for each.


If you are on page 25 it should then look like this:


IF 25 = NUMPAGES "25"


Then do the same thing for NUMPAGES (or SECTIONPAGES). It should look like this:

IF 25 = 25 "25"


Then select the entire field (IF 25 = NUMPAGES "25") and Press Ctrl+F9, then F9


You should see 25.

If you copy and paste this field to any page other than the last page, nothing will show.

Copy the field.

Insert > Footer > Edit Footer.

Paste the field where you want it in the footer. If you have more than one footer, copy it to all of them. (Each section has three footers, even though you may not see them all.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I program like a macro to add the filepath to the bottom of the final page? How to enter different texts on the bottom of the page? Pws Word 5 02-24-2014 11:54 PM
Can I program like a macro to add the filepath to the bottom of the final page? Aligning table with bottom of page Smallweed Word Tables 3 09-17-2013 08:24 AM
Can I program like a macro to add the filepath to the bottom of the final page? final page paragraph spacing pieter_bruegel Word 3 04-24-2012 03:48 AM
Can I program like a macro to add the filepath to the bottom of the final page? Can't Delete bottom page bad_dog81 Word 1 07-08-2011 02:54 AM
Can I program like a macro to add the filepath to the bottom of the final page? Page numbers top and bottom Perseid Word 3 06-16-2011 07:36 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft