Insert a File Path in Word for Mac Using the FileName Field
Question details
Insert a document's full file path and name in Word for Mac.

- Product
- Microsoft Word for Mac
- Device & OS
- macOS
- Scenario
- The user wants to display the document's location in the document.
- Observed behavior
- The Insert Field dialog does not show a separate FilePath field; the FileName field can display the path when used with the \p switch.
Save the document so it has a file name and location. Place the cursor where you want the path to appear, such as in the document body or a header or footer.
Add the path switch to the FileName field
Use the FileName field's \p switch to display the full path and file name.
In Word for Mac, place the cursor where you want the path, then select Insert > Field.
Choose Document Information as the category and select FileName from the field list.
Select Options, open the Field Specific Switches tab, select \p, and choose Add to Field. Select OK to close the dialogs and insert the field.
If you inserted the field before saving, save the document, then Control-click the field and select Update Field so the path can appear.

Edit Word Documents with WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for editing documents. Its Microsoft Office format compatibility helps you move existing files into your workflow. Use Word for Mac to configure the FileName field as described above.

Frequently Asked Questions
Why can't I find a FilePath field in Word for Mac?
Word for Mac uses the FileName field with the \p switch to show the path. Select Insert > Field, choose FileName, and add the switch through Options.
How do I show the path in a header or footer?
Open the header or footer for editing, place the cursor there, and select Insert > Field. Choose FileName and add the \p switch through Options.
Why does the field show only the file name?
Check that the \p switch was added to the FileName field through Options > Field Specific Switches. Save the document, then Control-click the field and select Update Field.
Will the displayed path change after I move the document?
The field may need to be refreshed. After opening the document in its new location, Control-click the field and select Update Field.




