Word of the week: Add the filename to your header or footer

People often want to add the location of their document--the filename and the file path--to the header or footer.

In Word 2010, you can do this by using field codes. It sounds more complicated than it is, so let's take a look.

For more information on field codes, see Insert and format field codes in Word.

-- Joannie Stangeland

Office Blogs Comments

Comments: (38) Collapse

  • It used to be so easy....ive been using 2007 for a little over 2 years now and was very proficient in previous version. I spend more time looking up things and where they are and it has become unproductive and frustating. You made to many drastic changes to the program. Hate it

  • Just the kind of information I was searching for - Thank you!

  • Is there a way to update the file path and file name in case I save my document in a new location or give it a new name? This does not seem to be a default option.

  • Charles --

    You can click in the header or footer and then press F9.

    -- Joannie

  • I was looking all over for this. sad they made something previously so simple so complicated now.

  • Is there a way to add the FileName to the default template so that it updates automatically with each new document created? This seems to work with date and time and page numbering, but FileName just stays as "Normal.dotm" until it is manually updated.

    This is a feature that worked well in Office 97 -- I hope it's not broken now!

  • Mike --

    That's a great question. By updating manually, do you mean pressing F9? I haven't found a setting for updating field codes on Save (which would help in this situation). Readers?

    -- Joannie

  • Can you now put this information into a document that can be read before trying the steps.  There ARE many, many learning methods!

  • Ernie --

    The steps are in this article: office.microsoft.com/.../add-or-remove-headers-footers-and-page-numbers-HA010372690.aspx.

    That article also contains other information about setting up headers, footers, and page numbers.

    We'll pull out the information for this particular procedure and place it in its own article.

    -- Joannie

  • It was so easy to add filename to a footer in previous versions.  It is very frustrating to not be able to do thing that previously were simple.  Microsoft needs to increase the ability of people to upgrade to new versions without having to search and search for the answer.  We know it is there, but finding it sometimes it very difficult.  This video was very helpful, and solved my delema, but the change from clicking on margins to the insert tab is a lot to grasp without help.

  • John --

    Thanks for your comments.

    -- Joannie

  • So glad to have stumbled upon this page, THANK YOU!  You rescued me from almost insanity trying to figure this out!

  • Thank you! Wow, how hard is this to find now?!! Even getting out of header and footer was a big 'Fail' on the intuitive scale!

  • I can not see to get your videos to work, what should I do?

  • Joe --

    I'm sorry you can't see the video. But basically you want to insert the filename by using the Filename field code (on the Insert tab, click Quick Parts, and then click Field. For more information about field codes, follow the link that's in the blog post.

    -- Joannie

Comments

Comments: (loading) Collapse