Insert a Word Document's File Name and Path using Fields

by Avantix Learning Team | Updated October 14, 2022

Applies to: Microsoft® Word® 2010, 2013, 2016, 2019, 2021 or 365 (Windows)

In Microsoft Word, you can insert a document's file name and path using fields. The path can be displayed in the body of the document or in the header or footer. You can also customize the Quick Access Toolbar and display the file path.

Recommended article: How to View Word Count in Microsoft Word (4 Ways)

Do you want to learn more about Microsoft Word? Check out our virtual classroom or in-person classroom Word courses >

Insert a document file name and path in a Word document using the FileName field

To insert the FileName field and display the current document's file name and path:

  1. Position the cursor where you want to display the file name and path. You can insert the field in the document or in a header or footer.
  2. Click the Insert tab in the Ribbon and click Quick Parts in the Text group. A drop-down menu appears.
  3. Select Field. A dialog box appears.
  4. Select FileName in the Field Names list. Options appear for the field.
  5. Select a format in the Format list.
  6. To display the full path, check or select the Add Path to filename check box.
  7. Click OK.

Below is the Field dialog box:

Field dialog box in Word with filename field selected to insert the file name and path.

Hide Field Codes

A file name would normally appear similar to the following example:

C:\Users\David\Desktop\ABCCompany\Projects\ARCProject.docx

If field codes appear instead, you can hide the field codes by pressing Alt + F9.

Update the FileName field

If the document's name or path has changed, you'll need to update the field.

To update the field, right-click the field and select Update or click the field and press F9. You can also press Ctrl + A and then press F9 to update all fields in your document.

Add a File Path button to the Quick Access Toolbar

You can also add a button in the Quick Access Toolbar to display the file path.

To customize the Quick Access Toolbar to display the file path:

  1. Click the arrow to the right of the Quick Access Toolbar (which is normally above the Ribbon by default) and choose More Commands. In the dialog box that appears, Quick Access Toolbar should be selected on the left.
  2. Click the arrow below Choose commands from and then select All Commands.
  3. Select Document Location in the list of commands.
  4. Click Add.
  5. Click OK. A document location or file path will now display in the Quick Access Toolbar.

Below is the Options dialog box where you can add buttons to the Quick Access Toolbar:

Options dialog box for adding buttons to the Quick Access toolbar in Microsoft Word.

You may want to display the Quick Access Toolbar below the Ribbon by clicking the arrow to the right of the Quick Access Toolbar and selecting Show Below the Ribbon.

This article was first published on October 4, 2017 and has been updated for clarity and content.

Subscribe to get more articles like this one

Did you find this article helpful? If you would like to receive new articles, JOIN our email list.

More resources

How to Insert a Check Mark in Word (5 Ways)

How to View Word Count in Microsoft Word (4 Ways)

How to Superscipt or Subscript in Word (with Shortcuts)

How to Insert or Type an Em Dash in Word (4 Ways with Shortcuts)

10+ Great Microsoft Word Navigation Shortcuts for Moving Around Quickly in Your Documents

Related courses

Microsoft Word: Intermediate / Advanced

Microsoft Excel: Intermediate / Advanced

Microsoft PowerPoint: Intermediate / Advanced

Microsoft Access: Introduction

VIEW MORE COURSES >

Our instructor-led courses are delivered in virtual classroom format or at our downtown Toronto location at 18 King Street East, Suite 1400, Toronto, Ontario, Canada (some in-person classroom courses may also be delivered at an alternate downtown Toronto location). Contact us at info@avantixlearning.ca if you'd like to arrange custom instructor-led virtual classroom or onsite training on a date that's convenient for you.

Copyright 2023 Avantix® Learning

You may also like

How to View Document Statistics in Microsoft Word

How to View Document Statistics in Microsoft Word

Microsoft Word automatically tracks statistics about your documents. These statistics appear in Word Properties and include the file name, directory, template, author, editing time, last print date and the user who last modified the document.

How to Create a Table Template in Word

How to Create a Table Template in Word

If you insert tables frequently in Word, you may want to create a table template to save time. Keep in mind that tables are affected by themes, styles and table styles so if the table template you insert seems to change formatting, the current document may contain different formatting from the original document when the table template was saved. A table template is saved as a building block and will appear in Quick Tables.

Microsoft, the Microsoft logo, Microsoft Office and related Microsoft applications and logos are registered trademarks of Microsoft Corporation in Canada, US and other countries. All other trademarks are the property of the registered owners.

Avantix Learning |18 King Street East, Suite 1400, Toronto, Ontario, Canada M5C 1C4 | Contact us at info@avantixlearning.ca

Summary
How to Insert a Word Document’s File Name and Path (2 Ways)
Article Name
How to Insert a Word Document’s File Name and Path (2 Ways)
Description
In Microsoft Word, you can display a document’s file name and path using fields. The path can be displayed in the body of the document or in the header or footer. You can also customize the Quick Access Toolbar and display the file path.
Author
Publisher Name
Avantix Learning

Pin It on Pinterest

Share This