OneDrive File Issues

Display a Local OneDrive Path in a Microsoft Word Filename Field

Jason MillerJason Miller Nov 14, 2026 868 views

Question details

Display the local Windows OneDrive path and document filename in a Word header.

Display a Local OneDrive Path in a Word Filename Field
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.
Before you start

Save the document in your synced OneDrive folder. In File Explorer, locate the document and check its local folder path in the address bar.

Solution 1Recommended

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.

1
Open the header

Double-click the header containing the Filename field to edit it.

2
Remove the field's path option

Right-click the Filename field and select Edit Field. Clear the option to add the path to the filename, then select OK.

3
Enter the local folder path

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.

4
Update the filename

Click the Filename field and press F9. Check that the header shows the local folder path followed by the document filename.

The folder path is manual: If you move the document or your local OneDrive folder changes, edit the typed path in the header. The Filename field does not update that manual text.
Free Microsoft Office alternative

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.

Edit documents and their headers in WPS WriterOpen and save Microsoft Word DOCX filesUse a familiar interface for a smoother transition from OfficeWork with a free, lightweight office suite
microsoft office alternative - wps office

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.