logo
search
SharePoint Document Issues

Do SharePoint Hyperlinks Work After Renaming Files in Excel?

Aamir Naveed AkramAamir Naveed Akram Sep 29, 2026 868 views

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.

Do SharePoint Hyperlinks Continue Working After File Renames?
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 you start

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.

Solution 1Recommended

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.

1
Locate the SharePoint File

Open your SharePoint document library and find the file you intend to link within your Excel spreadsheet.

2
Generate a Link

Click the 'Show actions' menu (three vertical dots) next to the file name and select 'Copy link'.

3
Configure Link Settings

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.

4
Insert into Excel

Copy the generated link and paste it into your Excel workbook cell or 'Insert Hyperlink' dialog.

Use SharePoint Document ID Links to Prevent Breakage
Durable Links: Using the 'People with existing access' option generally creates a durable Document ID link that survives both file renames and file migrations within the site.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Excel formats including .xlsx, .xls, and .csv.Easily insert, edit, and manage internal or external hyperlinks within your spreadsheets.Lightweight software design ensures smooth performance even with massive datasets.Built-in cloud collaboration tools for easy sharing and reliable file access across devices.
QA img-9

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.