Fix Excel Macro Trust Errors in Shared OneDrive Workbooks
Question details
Run trusted macros in an Excel workbook stored in a shared OneDrive folder without giving up co-authoring.

- Product
- Microsoft Excel and OneDrive
- Device & OS
- not provided
- Scenario
- A user needs to run macros in a shared, macro-enabled workbook while collaborating with others through OneDrive.
- Observed behavior
- Excel blocks the macros as untrusted, particularly when the OneDrive folder was shared by another user.
Confirm that you trust both the workbook's owner and its macros, and check whether the file is stored in personal OneDrive or OneDrive for work or school. The Trusted Sites steps below apply to Windows and may not resolve every shared-folder trust error.
Add a Trusted Personal OneDrive Location to Windows Trusted Sites
Try this for a trusted workbook in personal OneDrive when Excel blocks its macros because of the source location.
Adding a site to Trusted Sites can affect security decisions for other content from that location. Use this approach only if you trust the source and understand the risk; do not enable macros from unknown files.
The address https://d.docs.live.net has worked for some personal OneDrive users. A shared folder may use a different source or remain blocked, and organizational policies may prevent changes.
On Windows, press Windows+R, enter inetcpl.cpl, and select OK.
Select the Security tab, choose Trusted sites, and select Sites.
In the website field, enter https://d.docs.live.net and select Add. Close the Sites window, then select OK.
Close the workbook and reopen it from the shared OneDrive location in desktop Excel. Check whether the trust warning is gone before running the macro.

Work with Shared Spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and Microsoft Office format compatibility to help you move existing files. It does not change Excel's macro trust settings; verify VBA and collaboration support for your workbook before switching.

Frequently Asked Questions
Will adding the OneDrive address always unblock macros in a shared folder?
No. The personal OneDrive address https://d.docs.live.net may help in some cases, but a folder shared by someone else can still be blocked or governed by another policy.
Where do I find Trusted Sites on Windows?
Press Windows+R, enter inetcpl.cpl, and select OK. In Internet Properties, go to Security, select Trusted sites, and choose Sites.
Is it safe to add OneDrive to Trusted Sites?
It can reduce security protections for content from that location. Add the address only if you trust the source and its macros, and review the decision with your IT administrator if the device is managed.
Does this workaround require saving the workbook locally?
No. After updating Trusted Sites, reopen the workbook from its shared OneDrive location in desktop Excel. Whether the macro runs and co-authoring works depends on the workbook and your environment.




