![]() |
#1
|
|||
|
|||
![]()
I have been unsuccessfully trying to create a macro which will insert the filename and path as a footer in every Word document (about 8pt size) and place this on the Quick Launch bar. Most instructions I have found online have not been clear, or at least assume a degree of knowledge I don't yet have. I have wrestled with building blocks, global templates, Quick Parts etc and have probably done more harm than good! I am using Word Office & Student Home Edition 2010 and Windows 7.
|
#2
|
||||
|
||||
![]()
Hi jomarie,
You really don't need a macro for this - all you need is a FILENAME field, which you can place in the Normal template's footer. Word's Normal template is stored in the folder referred to under File|Options|Advanced > File Locations > User templates. If you choose File|Open, avigate to that location and set the file type to 'All Word templates', you should see a template file named 'Normal' there. Open that, go to the footer and insert the FILENAME field. You can do this via Insert|Quick parts|Field. You'll also need to format the footer text as 8pt. I prefer to shortcut this by going to the footer and pressing Ctrl-F9 to create a pair of field braces (ie {}) and typing 'FILENAME \p \* Charformat' between them, so that you end up with {FILENAME \p \* Charformat}, format the 'F' as 8pt text, then press F9 to update. This approach also means anything else you might want to put into the footer won't be formatted as 8pt text.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Jshopping | Word VBA | 10 | 06-08-2012 01:15 AM |
Mail with macro Excel 2010 | santors71 | Excel Programming | 1 | 12-07-2011 06:34 AM |
Macro - Microsoft Word 2010 | OfficeHelpSG | Word | 3 | 10-18-2011 11:54 AM |
![]() |
Joyce301 | Word VBA | 3 | 04-29-2011 03:27 PM |
Word 2003 macro to Word 2007 to 2010 to... | maruapo | Word VBA | 0 | 06-04-2010 03:43 PM |