Office for Mac Issues

Insert a File Path in Word for Mac Using the FileName Field

Aamir Naveed AkramAamir Naveed Akram Nov 18, 2026 869 views

Question details

Insert a document's full file path and name in Word for Mac.

Insert a File Path in Word for Mac Using the FileName Field
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.
Before you start

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.

Solution 1Recommended

Add the path switch to the FileName field

Use the FileName field's \p switch to display the full path and file name.

1
Open the field dialog

In Word for Mac, place the cursor where you want the path, then select Insert > Field.

2
Choose FileName

Choose Document Information as the category and select FileName from the field list.

3
Add the path switch

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.

4
Update 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.

Add the path switch to the FileName field
No separate FilePath field is needed: The FileName field displays the path when the \p switch is included. Update the field after moving or renaming the document to refresh its displayed location.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word DOC and DOCX filesWork with document text, headers, and footersUse a familiar interface for an easier transition from Microsoft OfficeAccess a free, lightweight office suite
QA img-9

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.