Print a Word File Path and File Name in the Footer on Mac
Question details
Display and print the full document path and file name in a Word footer on Mac.

- Product
- Microsoft Word for Microsoft 365 for Mac
- Device & OS
- Mac
- Scenario
- The user wants the footer of a printed Word document to identify both the document's location and its file name.
- Observed behavior
- The footer displays only the file name rather than the complete path and file name.
Save the document to its intended location using File > Save or File > Save As. An unsaved document may show a temporary name such as Document1 instead of a full path.
Add the path switch to the existing FILENAME field
Use this method if the footer already contains a file name field.
Double-click the footer area containing the file name to edit it.
Press Option+F9 to display field codes. If your Mac uses special function keys by default, you may also need to hold Fn.
Find the FILENAME field and change it to { FILENAME \p }. Keep the existing field braces rather than typing new braces.
Press Option+F9 again to show the field result, then select the field and press F9 or Control-click it and choose Update Field. Open File > Print to check the footer in print preview.

Insert a FILENAME field with the path switch
Use this method when the footer does not yet contain a file name field.
Edit Word Documents with WPS Office for Mac
WPS Office is a free, lightweight alternative for working with Word documents. Its familiar interface and format compatibility make it easy to move existing files into WPS Writer; use Word to configure the specific FILENAME field switch described above.

Frequently Asked Questions
Why does my footer show only the file name?
The FILENAME field may not include the path switch. Show field codes with Option+F9 and add \p so the field reads { FILENAME \p }, then update it.
Why does the field show Document1 instead of a path?
The document may not have been saved yet. Choose File > Save or File > Save As, save it to the intended location, and update the field.
How do I refresh the path after moving or renaming a document?
Open the footer, select the FILENAME field, and press F9 or Control-click it and choose Update Field. Check the result in File > Print before printing.
What if Option+F9 does not show the field code on my Mac?
Try holding Fn along with Option+F9 if your keyboard uses special function keys by default. You can also check your Mac's keyboard settings for how function keys are configured.




