OneDrive File Issues

Why Excel Changes OneDrive File Paths to SharePoint URLs

Jason MillerJason Miller Nov 27, 2026 869 views

Question details

The user wants Excel workbook references to retain local file paths instead of changing to SharePoint URLs when saved.

Why Excel Changes OneDrive File Paths to SharePoint URLs
Product
Microsoft Excel, OneDrive for Business, and SharePoint
Device & OS
not provided
Scenario
A workbook uses formulas linked to other workbooks in a local OneDrive for Business synchronization folder.
Observed behavior
When the workbook is saved, Excel converts references to synchronized files into SharePoint HTTPS links.
Before you start

Identify the destination workbook and its linked source workbooks, and check whether their folders are synchronized by OneDrive. In Excel, look for Data > Workbook Links or Data > Edit Links to inspect the current link sources.

Solution 1Recommended

Test workbook links outside the OneDrive sync folder

Use local copies outside synchronized folders to test whether storage location is causing Excel to replace local paths with cloud URLs.

1
Create local copies

Use File > Save As in Excel to save copies of the destination workbook and its source workbooks to a folder that is not synchronized by OneDrive.

2
Change the link source

Open the local destination copy and select Data > Workbook Links or Data > Edit Links, depending on your Excel version. Choose each source and use Change Source to select the corresponding local copy.

3
Save and check the links

Save and close the destination workbook, reopen it, and inspect Data > Workbook Links or Data > Edit Links to see whether the sources remain local. Update a value in a local source workbook and check that the destination updates as expected.

Test workbook links outside the OneDrive sync folder
Local copies are separate: Changes to these copies will not automatically update the original synchronized workbooks. This test does not guarantee that local paths will be retained if the files are later moved back into a synchronized folder.
Free Microsoft Office alternative

Work with Excel workbooks in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Office formats, making it easy to move everyday workbook tasks to WPS. It does not change Microsoft Excel's OneDrive or SharePoint integration.

Open and edit spreadsheets in a familiar interfaceCompatible with Microsoft Excel formats such as XLSX and XLSWork with locally stored spreadsheet filesUse a free, lightweight office suite for everyday documents
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel show a SharePoint URL for a file in my OneDrive folder?

OneDrive for Business can synchronize SharePoint-backed files to a local folder. Excel may use the cloud URL for a linked workbook when it saves files in that synchronized location.

Can I force Excel to keep a local path in a synchronized folder?

There is no guaranteed setting in this guidance that prevents the conversion. Test copies outside the synchronized folder and use Data > Workbook Links or Data > Edit Links to point to the local sources.

Will a SharePoint URL prevent a workbook link from updating?

Not necessarily. The link can update if the source is available and the user has access. Check the source in Data > Workbook Links or Data > Edit Links, and verify that you can open its SharePoint location.

Will changes to local test copies sync back to OneDrive?

No. Copies saved outside the OneDrive sync folder are separate from the synchronized workbooks. Changes to those copies do not automatically update the originals.