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 July 9, 2024)
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

Converting to Octal

If you need to do some work in the base-8 numbering system (octal), you'll love two worksheet functions provided by Excel ...

Discover More

Enabling Editing Erases Worksheet

If you receive a protected worksheet that you want to edit, how do you proceed if you try to unprotect the worksheet and ...

Discover More

Inserting the User's Address

If you enter your address into Word, you can insert that address anywhere you want in a document by using a single field. ...

Discover More

Do More in Less Time! Are you ready to harness the full power of Word 2013 to create professional documents? In this comprehensive guide you'll learn the skills and techniques for efficiently building the documents you need for your professional and your personal life. Check out Word 2013 In Depth today!

More WordTips (ribbon)

Maintaining Fields in a Merged Document

When merging documents, you may want to include some fields in the merged documents. For some fields this is impossible, ...

Discover More

Printing Field Codes

Field codes allow dynamic information to be included in documents and can be a great boon. At some point you may want to ...

Discover More

Unwanted Page Breaks in Cross-References

You can use fields to cross-reference different text in a document. If you get unwanted results from the ...

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.