VBA & Macro Problems

Enable Blocked Macros Safely in Excel XLSM Workbooks

Natalie TaylorNatalie Taylor Nov 12, 2026 869 views

Question details

The user needs to safely enable macros in an Excel workbook that is blocked as unsafe despite macro permissions being enabled.

Enable Blocked Macros Safely in Excel XLSM Workbooks
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.
Before you start

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.

Solution 1Recommended

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.

1
Close the workbook in Excel

Save your work if needed, then close the affected workbook and exit Excel so the file is not open.

2
Open the workbook Properties dialog

In File Explorer, locate the .xlsm workbook, right-click it, and select Properties.

3
Remove the security block

On the General tab, find the Security section. Select the Unblock check box if it appears, then click Apply and OK.

4
Reopen and review the workbook

Open the workbook in Excel and use the security notification or Enable Content option only after confirming that the macros are expected and trusted.

Unblock the Excel workbook in Windows File Properties
The Unblock option is file-specific: If Unblock is not shown, Windows has not marked that file as downloaded, or a different policy or security setting is preventing macros.
Free Microsoft Office alternative

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.

Open and edit Excel XLSX and XLSM workbook formats.Use a familiar spreadsheet interface for formulas, tables, charts, and everyday workbook tasks.Lightweight installation and free access for common Office productivity work.Maintain compatibility with Microsoft Office document formats during migration.
microsoft office alternative - wps office

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.