Enable Blocked Macros Safely in Excel XLSM Workbooks
Question details
The user needs to safely enable macros in an Excel workbook that is blocked as unsafe despite macro permissions being enabled.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A macro-enabled workbook was downloaded from the internet, received from another source, or opened from a location that Excel does not trust.
- Observed behavior
- Excel prevents the workbook's VBA macros from running because the file may be marked as originating from an untrusted source or blocked by security controls.
Confirm that the workbook comes from a trusted sender and that you expect it to contain macros. Check that the file extension is .xlsm, .xltm, or another macro-enabled Excel format before changing any security settings.
Unblock the Excel workbook in Windows File Properties
Use this method when the workbook was downloaded from the internet, email, Teams, or another external source and Windows has marked it as unsafe.
Windows can add a security mark to downloaded files. When this mark is present, Excel may block VBA macros even if macros are otherwise allowed in Trust Center.
Save your work if needed, then close the affected workbook and exit Excel so the file is not open.
In File Explorer, locate the .xlsm workbook, right-click it, and select Properties.
On the General tab, find the Security section. Select the Unblock check box if it appears, then click Apply and OK.
Open the workbook in Excel and use the security notification or Enable Content option only after confirming that the macros are expected and trusted.

Store trusted workbooks in an Excel Trusted Location
Use a Trusted Location for macro workbooks you regularly use and have verified as safe.
Check organizational policies and antivirus macro protection
Use this method when Unblock and Trusted Locations do not allow macros to run, especially on a work-managed computer.
Open and Manage Macro-Enabled Excel Workbooks with WPS Office
If Microsoft Excel security policies or licensing requirements are preventing your workflow, WPS Office is a free, lightweight Office alternative with a familiar spreadsheet interface. It supports opening and editing common Excel workbook formats, helping you move existing files and spreadsheet tasks to a compatible environment with minimal adjustment.

Frequently Asked Questions
Why are Excel macros blocked even though I enabled macros in Trust Center?
A workbook downloaded from the internet can carry a Windows security mark that blocks VBA macros independently of Trust Center settings. Close Excel, right-click the workbook in File Explorer, select Properties, and use Unblock if that option is available.
Where can I add a Trusted Location in Excel?
Go to File > Options > Trust Center > Trust Center Settings > Trusted Locations. Select Add new location, then choose a dedicated folder that contains only verified macro-enabled workbooks.
Which Excel file types can contain VBA macros?
Excel Macro-Enabled Workbook (.xlsm) and Excel Macro-Enabled Template (.xltm) can contain VBA macros. Standard .xlsx files cannot store VBA projects.
Can Group Policy prevent me from enabling Excel macros?
Yes. On managed work devices, an organization can use Group Policy or security controls to block macros from internet-sourced files. Local Trust Center changes may not override that policy, so contact your IT administrator.
Is it safe to enable macros in every Excel workbook?
No. Enable macros only when you trust the source and understand why the workbook needs them. Macros can run code that changes files, accesses data, or performs other actions on your computer.




