VBA & Macro Problems

Fix Excel Macro Trust Errors in Shared OneDrive Workbooks

Anum MushtaqAnum Mushtaq Nov 18, 2026 868 views

Question details

Run trusted macros in an Excel workbook stored in a shared OneDrive folder without giving up co-authoring.

Fix Excel Macro Trust Errors in Shared OneDrive Workbooks
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Internet Properties

On Windows, press Windows+R, enter inetcpl.cpl, and select OK.

2
Open Trusted Sites

Select the Security tab, choose Trusted sites, and select Sites.

3
Add the OneDrive address

In the website field, enter https://d.docs.live.net and select Add. Close the Sites window, then select OK.

4
Reopen the shared workbook

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.

Add a Trusted Personal OneDrive Location to Windows Trusted Sites
If the macro remains blocked: This workaround is not guaranteed for folders shared by another user. Check the file's source and any organizational security policy with the owner or IT administrator rather than lowering macro security globally.
Free Microsoft Office alternative

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.

Open and edit Microsoft Excel .xlsx spreadsheetsWork in a familiar spreadsheet interfaceUse a free, lightweight alternative for everyday spreadsheet tasksCheck macro compatibility before moving a VBA-dependent workbook
microsoft office alternative - wps office

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.