Display a Local OneDrive Path in a Microsoft Word Filename Field
Question details
Display the local Windows OneDrive path and document filename in a Word header.

- Product
- Microsoft Word and OneDrive
- Device & OS
- Windows
- Scenario
- A document stored in OneDrive has a Filename field in its header, and the user wants it to show the local folder path.
- Observed behavior
- The Filename field with the path option may display an online OneDrive location instead of the local Windows path.
Save the document in your synced OneDrive folder. In File Explorer, locate the document and check its local folder path in the address bar.
Add the Local Folder Path Before the Filename Field
Use this workaround to show a local path while keeping the filename portion as a Word field.
Double-click the header containing the Filename field to edit it.
Right-click the Filename field and select Edit Field. Clear the option to add the path to the filename, then select OK.
In File Explorer, select the document's folder address and copy the local path. In the Word header, paste it immediately before the Filename field and add a trailing backslash if needed.
Click the Filename field and press F9. Check that the header shows the local folder path followed by the document filename.
Edit Word Documents with WPS Writer
WPS Office is a free, lightweight alternative with a familiar interface and support for Microsoft Office formats, making it easy to move existing documents into WPS Writer. It does not change how Microsoft Word reports OneDrive paths.

Frequently Asked Questions
Why does the Filename field show a OneDrive URL?
Word may report the online OneDrive location when the Filename field includes its path option. To display a local path instead, remove that option and type the local folder path before the field.
How do I find my local OneDrive folder path?
Open File Explorer, navigate to the folder containing the document, and select the address bar to view and copy the local path.
Will the typed path update if I move the document?
No. The folder path is ordinary text, so you must edit it in the header after moving the document. The Filename field can still update the filename when you select it and press F9.
How can I ask Microsoft to support local paths in the field?
Use Word's feedback option, typically found under File > Feedback, to describe the local OneDrive path behavior and request support.




