ptolemy Posted September 3, 2007 Posted September 3, 2007 I am trying to create a default template that displays the file path. I have tried opening Normal.dotm, adding the file path footer that I have created, and then saving the file. My problem is that when I create a new document, it has the path to Normal.dotm. So it seems like the result of the macro is being saved, rather than the macro itself. Does anyone have any thoughts, because I'm at my wits end?
spacesurfer Posted September 20, 2007 Posted September 20, 2007 (edited) I'm not sure if you really understand what a macro is since you didn't mention in your question what your macro text is. If you do know what a macro is, I apologize.Here are two ways of accomplishing these, but both are problematic because of this reason:* Reason you will not be able to do this automatically is because when you open a document from your document template containing the FileName Path in your footer, you haven't saved the file yet. So Word does not know the filepath since your document isn't saved. Here are two ways and the work-around for the problem mentioned above:First Method1. Open a blank document (.doc), not a document template (.dot).2. In the footer, go ahead and put your filepath field.3. Save your document as a document template (other than normal.dot), like filepath.dot.4. Close word5. Rename filepath.dot to normal.dot and replace your existing normal.dot with this one.6. Now open word (not by double clicking your document template) normally and you should automatically see your field. You will not see a path because file hasn't been saved yet. Save the document to any name you like and anywhere you like.7. Close word and reopen the document. You still will not see the complete file path. Double-click on the footer. Hit the F9 key and voila, Word will update your filepath field with your current file path.So, basically, you'll have to use the F9 key to update your field each time you save a file. But you'll have to do this only once.Second Method Other method is to record a macro. Just record a macro to insert the filepath field to your footer. You can assign the macro to the toolbar so you can add the filepath on one click. However, before running the macro, I would save the file first so you avoid F9 key to update the field. Otherwise, if it hasn't been save and you run the macro, then you'll have to go into the footer and press F9. Edited September 20, 2007 by spacesurfer
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now