Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-18-2012, 03:30 AM
jomarie jomarie is offline Word 2010 Macro Windows 7 64bit Word 2010 Macro Office 2010 64bit
Novice
Word 2010 Macro
 
Join Date: Feb 2012
Posts: 1
jomarie is on a distinguished road
Default Word 2010 Macro

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.
Reply With Quote
  #2  
Old 02-19-2012, 07:45 PM
macropod's Avatar
macropod macropod is offline Word 2010 Macro Windows 7 64bit Word 2010 Macro Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2010 Macro Macro to print "Current Page" in Word 2010 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
Word 2010 Macro Run a Macro in Word 2010 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:53 AM.


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