logo
search
VBA & Macro Problems

How to Enable Macros in an Excel Macro-Enabled Workbook

Maira MehtabMaira Mehtab Sep 28, 2026 873 views

Question details

The user needs to enable macros in an Excel workbook, as they become disabled when reopening the file and standard unblock options are missing in the settings.

Product
Excel
Device & OS
not provided
Scenario
Reopening an Excel macro-enabled workbook after initial use.
Observed behavior
Macros work initially but are disabled upon reopening. The Trust Center settings lack an unblock option or macro security prompt.
Before you start

Ensure the workbook is saved in a macro-enabled format (.xlsm or .xlsb) and verify that you trust the source of the file before attempting to enable active content.

Solution 1Recommended

Unblock the File from Windows Properties

Files downloaded from the internet or received via email are often blocked by Windows security, which prevents macros from running.

Windows automatically adds a 'Mark of the Web' to files originating from another computer or the internet. This forces Excel to open them in Protected View and disables macros without showing the standard Trust Center prompts.

1
Close Excel

Ensure that the Excel workbook in question is completely closed before attempting to change its file properties.

2
Open File Properties

Locate the downloaded workbook in File Explorer, right-click the file, and select 'Properties' from the context menu.

3
Unblock the File

Navigate to the 'General' tab. Look for a 'Security' section at the bottom, check the box that says 'Unblock', and click 'Apply' then 'OK'.

File Unblocked: Once unblocked, opening the file should trigger the standard macro security prompt allowing you to enable content.
Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Management

If you are experiencing persistent issues with Excel's Trust Center, macro security roadblocks, or hidden settings, consider trying WPS Office. It provides a highly compatible alternative for managing your spreadsheets, complex formulas, and data analysis tasks efficiently.

  1. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Install the Application: Run the downloaded installer and follow the quick on-screen prompts to set up WPS Office on your device.
  3. 3. Open Your Spreadsheets: Launch WPS Spreadsheet and open your existing Excel files directly to continue your work without formatting loss.
Highly compatible with Microsoft Excel formats including .xlsx, .xlsm, and .csv.Free and lightweight, ensuring rapid installation and fast loading times for large datasets.Familiar user interface requires almost no learning curve to switch.
QA img-9

Frequently Asked Questions

Why do my macros disable themselves after reopening the workbook?

This usually happens when the file is tagged with a 'Mark of the Web' by Windows because it was downloaded from the internet or an email attachment. Windows automatically blocks active content upon reopening unless explicitly unblocked in the file properties.

Why is there no 'Enable Content' prompt in my Trust Center?

If your Trust Center settings are configured to 'Disable all macros without notification', the security prompt will not appear. Additionally, IT administrators in enterprise environments often use group policies to hide or lock these settings to prevent malicious code execution.

Can I permanently enable macros for a specific folder?

Yes. By adding a folder to your 'Trusted Locations' in the Excel Trust Center settings, any macro-enabled workbook placed in that folder will run automatically without prompting you for security permissions.

What file formats support macros in Excel?

Macros are supported in Excel Macro-Enabled Workbooks (.xlsm), Excel Binary Workbooks (.xlsb), and older Excel 97-2003 Workbooks (.xls). Standard .xlsx files cannot store VBA macro code.