How can I automatically insert the filename of my document, including its full path, into the header of my Word 6 file?

  1. Firstly, start Microsoft Word (version 6 or later) and open your document.

  2. Select the View menu then Header and Footer… to get into the header of your document.

  3. Select the Insert menu then Field…

  4. Click Document Information on the left then FileName on the right in the Insert Field dialogue box like this:
    Options for Field categories and Names.

  5. Click the Options button in the dialogue box, then the Field Specific Switches tab.
    Field Specific Switches tab.

  6. Click the Add to Field button, which inserts the full path of the file.

  7. Make sure your dialogue box looks something like this, then click OK and OK again:
    Final setup for path and filename.

  8. The code for inserting your filename with its full path is automatically entered, and something like c:\My Documents\report.doc appears. Pressing (Alt)(F9) displays the actual Word code for the full path and filename, and something like the following appears:
    Field code for path and filename. Press (Alt)(F9) again to see the actual path and filename.

If you change the filename through the File menu then Save As…, the filename field will automatically update. One suggestion is to set up a macro which inserts the name and full path automatically for you.

Add to Technorati Favorites


// Related Posted - GOOGLE!

Loading



Related Websites
Saturday, May 10th, 2008 at 13:57
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>