Do SharePoint Hyperlinks Work After Renaming Files in Excel?
Question details
The user wants to know if existing hyperlinks to SharePoint files will break or remain functional after the target file's name is changed.

- Product
- Microsoft SharePoint and Excel
- Device & OS
- not provided
- Scenario
- Managing spreadsheets containing links to SharePoint files and determining whether it is safe to rename files without breaking the references.
- Observed behavior
- Direct URLs break when files are renamed, but links utilizing unique document IDs or specific access permissions often continue to function.
Before attempting a bulk rename of files in your SharePoint library, it is highly recommended to test the renaming process with a single file to confirm how your specific link type behaves.
Use SharePoint Document ID Links to Prevent Breakage
Generate a durable hyperlink using SharePoint's unique document identifier so the link remains intact regardless of file name or location changes.
A direct path URL copied from the browser address bar (e.g., .../folder/MyFile.xlsx) relies on the exact file name. When the file is renamed, the direct path changes and the link breaks.
To avoid this, use SharePoint's built-in sharing features to create a link based on the file's background identifier, which never changes even if the file is renamed or moved.
Open your SharePoint document library and find the file you intend to link within your Excel spreadsheet.
Click the 'Show actions' menu (three vertical dots) next to the file name and select 'Copy link'.
Click on the link settings gear icon and select 'People with existing access' to ensure the link relies on the document ID instead of a direct file path. Apply the settings.
Copy the generated link and paste it into your Excel workbook cell or 'Insert Hyperlink' dialog.

Verify Existing Links Before Renaming
Test your current hyperlink structure to determine if it is tied directly to the file name, preventing unexpected broken links across your documents.
Manage Spreadsheets and Hyperlinks Seamlessly with WPS Office
If managing broken links and complex document integrations is slowing you down, try WPS Office. It provides a lightweight, highly compatible alternative to Microsoft Office, allowing you to edit files, manage hyperlinks, and collaborate effortlessly for free.

Frequently Asked Questions
Why did my Excel hyperlink to a SharePoint file suddenly break?
If the hyperlink was copied directly from the web browser's address bar, it contains the exact file name. When the file is renamed in SharePoint, the path changes, causing the direct URL to result in a '404 File not found' error.
Does moving a file to a new SharePoint folder also break hyperlinks?
Yes, moving a file alters its direct folder path. If you used a direct URL, the link will break. However, if you generated a 'Copy link' utilizing the SharePoint Document ID, the link will continue tracking the file to its new location.
How do I fix a broken hyperlink in my Excel workbook?
To fix a broken hyperlink, right-click the cell containing the broken link, select 'Edit Hyperlink', and paste the updated SharePoint URL or a durable Document ID link into the 'Address' field at the bottom of the dialog box.




