How to Keep Local Excel and Word Links from Changing to OneDrive URLs
Question details
The user wants to prevent linked objects in Excel and Word documents from automatically changing from local file paths to OneDrive web URLs when files are saved in a local OneDrive folder.

- Product
- Microsoft Office / OneDrive
- Device & OS
- not provided
- Scenario
- Working with linked Office documents stored within a local OneDrive backup folder.
- Observed behavior
- When reopening synced Office files, local file links automatically change to online paths, causing the links to either fail or open the source document in a web browser instead of the local desktop application.
Ensure you have access to your OneDrive settings and note that modifying Office sync settings will disable Microsoft AutoSave for these documents.
Disable Office Synchronization in OneDrive Settings
By turning off the Office integration feature within OneDrive, you can force the application to treat files as local documents, preserving local file links.
OneDrive and Microsoft Office work together to enable real-time co-authoring and AutoSave. As part of this integration, OneDrive automatically treats files inside its synced folders as online documents, converting local link paths into SharePoint or OneDrive URLs. Disabling this specific sync setting stops the conversion.
Click the OneDrive cloud icon located in your system tray or menu bar. Click on the gear icon (Help & Settings) and select 'Settings' from the menu.
In the Microsoft OneDrive settings window, click on the 'Office' tab at the top.
Clear the checkbox that says 'Use Office applications to sync Office files that I open'. Click 'OK' to save your changes.
Open your Excel or Word documents, delete the broken or web-linked objects, and reinsert them using the standard local file path.

Use WPS Office to Keep Local Links Intact Easily
If disabling AutoSave in Microsoft Office is not a viable option, consider switching to WPS Office. WPS Office respects local file paths and allows you to build robust, locally linked documents without forcing unwanted cloud URL conversions.
- 1. Download and Install WPS Office: Visit the official WPS website, download the free installation package, and install it on your computer.
- 2. Open Your Office Files: Launch WPS Office and open your existing Excel and Word documents directly from your local OneDrive folder.
- 3. Work Locally with Confidence: Insert your local links and edit your files knowing that WPS Office will not automatically rewrite your local paths into web URLs.

Frequently Asked Questions
Why does OneDrive change my local file links to URLs automatically?
When Office sync is enabled in OneDrive, it prioritizes features like AutoSave and live co-authoring. To facilitate this, it treats local files as cloud documents, rewriting local paths (like C:\Users\...) to SharePoint or OneDrive web URLs.
Can I keep Microsoft AutoSave enabled while preserving local links?
Unfortunately, no. In Microsoft Office, the AutoSave feature requires the document to be processed as an online file. If you require strict local linking within a synced OneDrive folder, you must disable the Office sync setting, which turns off AutoSave.
How do I fix links that have already been converted to web URLs?
You will first need to change your OneDrive settings by unchecking 'Use Office applications to sync Office files that I open'. Afterward, you must open your document, remove the objects that have web URLs, and manually insert them again using their local file paths.




