Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-29-2010, 01:43 AM
RPM7 RPM7 is offline Macro for automatically adding filename without .doc Windows XP Macro for automatically adding filename without .doc Office 2007
Novice
Macro for automatically adding filename without .doc
 
Join Date: Apr 2010
Posts: 6
RPM7 is on a distinguished road
Default Macro for automatically adding filename without .doc


I have a document that I would like to embed the filename into the header.
The first page of the document has a blank header & the second page has the same header as the remainder of the document.
I initially inserted the field [file name] with Uppercase but it included the ".doc" at the end which I would like to remove. I looked online and most sites say this can't be done. (Plus the field must be updated to take effect)
Instead is it possible to insert a macro that upon saving the file would create a text box in both headers with the filename and the last 4 letters omitted to remove the ".doc".

Does anyone know anything about this?
I'd appreciate any help at all. Thanks.
Reply With Quote
Reply

Tags
filename, macro, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Word: The document 'Filename' caused a serious error the last time ... martincruise Word 0 02-25-2010 01:47 AM
Filename in footer Dixon Word 3 09-24-2009 09:12 AM
Macro for automatically adding filename without .doc Adding PDF sussertown Office 2 06-13-2009 01:10 AM
Reference to an external filename which changes frequently roooberta Word 0 12-11-2008 07:33 AM
Adding dates mkkram Word 0 11-27-2006 09:18 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:41 PM.


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