Fix Excel Links After Migrating Files to SharePoint
Question details
The user needs to repair external Excel workbook links that break after local files are migrated to a SharePoint document library, because the SharePoint Migration Tool may update only part of the destination URL.

- Product
- Microsoft SharePoint Online and WPS Office Spreadsheet
- Device & OS
- not provided
- Scenario
- Local or on-premises files were migrated to a SharePoint document library, and Excel workbooks stored in different folders contain external workbook links.
- Observed behavior
- External workbook links may stop working or become invalid after migration because SharePoint Online URLs differ from the original local paths and the migration tool does not update all destination URLs.
Open the affected workbook in WPS Office Spreadsheet and note which external links show as invalid. Make sure you have permission to access the migrated SharePoint library and that the linked workbooks are stored in their final locations before changing sources.
Update Excel external links manually in WPS Office Spreadsheet
Use this method when you need a quick, no-code repair for a small number of broken workbook links after SharePoint migration.
WPS Office Spreadsheet opens standard Excel workbooks and exposes the same external link definitions, so you can point each broken source to the new SharePoint Online location without writing a script.
Launch WPS Office Spreadsheet, click File > Open, and open the workbook that displays the broken external link warning.
Click the Data tab on the ribbon, then click Edit Links in the Connections group.
In the Edit Links dialog, select the first broken source, click Change Source, and browse to the migrated workbook location in SharePoint Online.
Select the correct workbook, confirm the update, repeat for other invalid links, and save the file to preserve the new SharePoint URLs.

Use a scripted or third-party bulk update for many broken links
Use this for large migrations where many workbooks or many external links need the same URL replacement.
Repair Broken Excel Workbook Links After SharePoint Migration with WPS Office
Open the migrated workbooks in WPS Office Spreadsheet and use Data > Edit Links to update each external link source to the new SharePoint Online URL. This resolves broken Excel references without scripts or extra paid tools.
- 1. Install WPS Office and open Spreadsheet: Download WPS Office from the official website, install it, and launch WPS Office Spreadsheet.
- 2. Open the workbook with broken links: Click File > Open and select the migrated workbook that is prompting about broken external links.
- 3. Edit and change the broken link source: Go to Data > Edit Links, select an invalid link, click Change Source, and choose the correct workbook in the SharePoint Online library.
- 4. Save and verify the repair: Repeat for each broken link, save the workbook, close and reopen it to confirm the external link warning no longer appears.

Frequently Asked Questions
Why does the SharePoint Migration Tool leave Excel links broken?
SharePoint Online URLs are different from local or on-premises paths, and the migration process may update only part of the destination URL. As a result, external workbook links that point to other files can remain invalid after migration.
Can I fix broken Excel links without opening every workbook in Excel?
Yes. You can open the workbook in WPS Office Spreadsheet, go to Data > Edit Links, select the broken link, and use Change Source to point it to the new SharePoint Online file.
Will WPS Office keep my Excel links and formulas compatible with Microsoft Excel?
Yes. Save the repaired workbook as .xlsx, and formulas, external links, and workbook structure remain compatible with Microsoft Excel.
What if the Edit Links command is grayed out in WPS Office Spreadsheet?
This usually means the workbook is protected, already saved in a format that does not support external links, or contains no external link formulas. Remove protection or save it as a standard .xlsx file and try again.
Does WPS Office run VBA macros for bulk link replacement?
WPS Office has limited VBA macro support compared with Microsoft Excel. For a large-scale scripted replacement, use Microsoft Excel, PowerShell, or a third-party bulk link update tool on test copies first.




