How to Stop Excel Hyperlink Warnings for a Trusted OneDrive Folder
Question details
The user wants to prevent Excel from displaying security warnings when clicking hyperlinks that point to files stored in a trusted local OneDrive folder.

- Product
- Microsoft Excel
- Device & OS
- Windows
- Scenario
- Opening hyperlinks in an Excel spreadsheet that link to other files located in a local OneDrive directory.
- Observed behavior
- Excel continues to show a security warning prompt when clicking the hyperlink, even after the OneDrive folder has been added to the Trust Center's trusted locations.
Ensure you have administrative privileges on your computer, and strictly back up your Windows Registry before making any system-level changes to Office policies.
Verify and Update Excel Trust Center Locations
Ensure the exact local path of the OneDrive folder is recognized by Excel's Trust Center, rather than a cloud URI.
Cloud-synced folders can sometimes trigger warnings if Excel interprets the hyperlink as an internet address rather than a local file path. Adding the exact local directory usually resolves this.
Launch Microsoft Excel, click on the 'File' tab in the top-left corner, and select 'Options' at the bottom of the menu.
In the Excel Options window, click on 'Trust Center' in the left pane, then click the 'Trust Center Settings' button.
Navigate to 'Trusted Locations' on the left. Click 'Add new location', browse to the exact local path of your OneDrive folder (e.g., C:\Users\[YourName]\OneDrive), and check the box that says 'Subfolders of this location are also trusted'.
Click 'OK' to save the settings, close all dialog boxes, and restart Microsoft Excel to see if the hyperlink warning is removed.

Disable Hyperlink Warnings via Registry Editor
Use a registry tweak to force Office to stop displaying hyperlink warnings if administrative policies or OneDrive settings are overriding the Trust Center.
Experience Hassle-Free Spreadsheets with WPS Office
If persistent security warnings and complex registry configurations in Microsoft Excel disrupt your workflow, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with intuitive security settings out of the box.
- 1. Download the Installer: Visit the official WPS Office website and click 'Download' to get the free installer.
- 2. Install WPS Office: Run the installer and follow the on-screen prompts to set up the software on your Windows PC.
- 3. Open Your Spreadsheets: Launch WPS Spreadsheets, open your existing .xlsx files, and enjoy smooth hyperlink navigation without intrusive security prompts.

Frequently Asked Questions
Why does Excel show a security warning for hyperlinks?
Excel triggers security warnings for hyperlinks as a safety measure to protect your computer from potentially malicious files, executable scripts, or unsafe web addresses, especially if the target location is not explicitly trusted.
Can I disable hyperlink warnings for specific files only?
No, the registry fix disables the warning globally for the Office application. Using the Trust Center to add specific 'Trusted Locations' is the best way to target specific folders without turning off the warning entirely for the whole application.
Why aren't my OneDrive folders recognized as trusted locations?
Cloud-synced folders can sometimes resolve to internet zones instead of local paths in Microsoft Office. Ensure you are selecting the exact local file path (e.g., C:\Users\[Username]\OneDrive) in the Trust Center and verify that your hyperlinks point to this local drive path, not the SharePoint web URL.




