How to Fix OneDrive Links Not Working in Shared Excel Files
Question details
Users need a way to fix an issue where links to OneDrive PDF files inside a shared Excel workbook return an error for collaborators, despite working for the file owner.

- Product
- Microsoft Excel, OneDrive
- Device & OS
- not provided
- Scenario
- Collaborators are trying to open linked PDF files hosted on OneDrive from within a shared Excel workbook.
- Observed behavior
- Clicking the link directly in the shared workbook displays an 'Invalid link' message for collaborators, though the link successfully opens if copied and pasted into a new browser tab.
Verify that the linked PDF files still exist in the correct OneDrive folder and that their sharing permissions are set to 'Anyone with the link' before attempting further troubleshooting.
Test the Link Manually and Verify File Permissions
Confirming whether the issue stems from Excel's click-handling or actual file permissions is the quickest way to isolate the problem.
Often, shared workbooks restrict how hyperlinks behave depending on user sessions. Isolating the link from the workbook helps determine if the link is broken or if the browser environment is blocking the redirect.
Select the cell containing the broken link in the shared Excel workbook and copy the URL directly from the formula bar or by right-clicking and selecting 'Edit Hyperlink'.
Open a new browser tab, paste the copied URL into the address bar, and press Enter to see if the PDF loads successfully.
If the link fails to load, navigate to the original PDF in your OneDrive account, click the 'Share' icon, and ensure the permission is set to 'Anyone with the link can view'.

Open the Workbook in an InPrivate or Incognito Browser Window
Use a private browsing session to bypass cached data and conflicting account logins that may block link redirects.
Try WPS Office for Seamless File Sharing and Collaboration
If Microsoft Excel and OneDrive links continue to cause friction, WPS Office provides a highly compatible, lightweight alternative. With robust built-in cloud sharing features, you can collaborate on spreadsheets without link-handling errors.
- 1. Download WPS Office: Install the free WPS Office suite from the official website onto your computer.
- 2. Open Your Spreadsheet: Launch WPS Spreadsheet and open your existing .xlsx file. Your formatting and data will remain perfectly intact.
- 3. Share Easily: Use the Share button at the top right to generate a reliable WPS Cloud link that anyone can open without permission conflicts.

Frequently Asked Questions
Why do OneDrive links work for me but not for others in my shared Excel file?
This usually happens due to file permission settings in OneDrive. If the link was generated for 'Specific people' or 'People in your organization' rather than 'Anyone with the link', external collaborators will see an invalid link error, even if they have access to the Excel file itself.
Can clearing my browser cache fix Excel Online link issues?
Yes. Outdated cached data or conflicting Microsoft account logins stored in your browser can prevent links from authenticating correctly. Clearing your cache or using an InPrivate window forces a fresh session.
Is there a way to fix the 'Invalid link' error permanently in Excel?
If permissions are verified and the issue persists, try recreating the hyperlink in Excel using the '=HYPERLINK()' formula referencing a fresh 'Anyone' sharing link from OneDrive. This forces Excel to rebuild the redirect path.




