Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Inserting a Document's Location.

Inserting a Document's Location

Written by Allen Wyatt (last updated May 30, 2020)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


1

It is often handy to insert the location of a document into your document itself. For instance, you may want the footer of your document to include an indication of a document's file name, along with the full path for the file. You can do this easily by following these steps if you are using Word 2002 or a later version:

  1. Position the insertion point where you want the file name inserted.
  2. Display the Insert tab of the ribbon.
  3. Click the Quick Parts tool in the Text group. Word displays some choices below the tool.
  4. Click Field. Word displays the Field dialog box.
  5. Choose Document Information from the Categories list (top left corner of the dialog box). (See Figure 1.)
  6. Figure 1. The Field dialog box.

  7. Select FileName from the Field Names list.
  8. Click on the Field Codes button. Word modifies the display of the dialog box.
  9. Click Options. Word displays the Field Options dialog box.
  10. Click on the Field Specific Switches tab. (See Figure 2.)
  11. Figure 2. The Field Specific Switches tab of the Field Options dialog box.

  12. Choose the \p option. (This causes the path of the file name to be included in the field results.)
  13. Click on Add to Field.
  14. Click on OK to close the Field Options dialog box.
  15. Click on OK to close the Field dialog box and insert the field.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12915) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Inserting a Document's Location.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Printing All or Nothing

Want to make sure that when you worksheet is printed that everything in the workbook is really printed? You can ...

Discover More

Stubborn Highlighting

When you make extensive edits to a document and those edits include changing the formatting of numbered or bulleted ...

Discover More

Displaying Letter Grades

Grading in schools is often done using numeric values. However, you may want to change those numeric values into letter ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Moving Footnote References Using Find and Replace

When you are editing a document, you may need to modify where the author placed footnotes relative to surrounding ...

Discover More

Inserting a Document's Size

Want to insert the size of your document directly into the document body? You can do so by using one of the dynamic ...

Discover More

Protecting Fields

Tired of getting the fields in your document overwritten by regular editing tasks? Here's how to make those mistakes more ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 6 - 0?

2020-06-01 16:25:23

B_PARKER

Re: Inserting a Document's Location. I use this for every document I create.

I'm curious, why go through steps 7 through 13, when it can be done in two steps?

After Step 6, when FileName is selected, a selection box "Field Options" appears on the right of the screen which allows you to Add path to filename. Just check the box and select OK.

Steps 7 through 13 in the example appear unnecessary unless I am missing something?

I'm new to your newsletters (Word and Excel) and find them very interesting.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.