Fix Excel Macros Not Available or Disabled
Question details
The user needs to troubleshoot and resolve issues where Excel macros are disabled, unavailable, or causing the application to crash upon enabling them.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Trying to open or run a macro-enabled workbook but the macros are blocked by security settings, or Excel crashes immediately when macros are enabled.
- Observed behavior
- Macros fail to run, the 'Enable Content' prompt is missing, or Excel crashes and forces other open files to close when macros are activated.
Ensure that the macro-enabled file (.xlsm) is downloaded from a trusted source, as macros can contain malicious code. Save any other open workbooks before troubleshooting to prevent data loss in case of an unexpected crash.
Unblock the File and Adjust Trust Center Settings
Use this method if the macro-enabled file was downloaded from the internet or received via email, which triggers Windows security to block it.
Windows automatically blocks macros in files originating from another computer or the internet. You must first unblock the file in Windows File Explorer before adjusting Excel's internal security settings.
Right-click the downloaded Excel file on your computer and select 'Properties'. In the General tab, look for the Security section at the bottom, check the 'Unblock' box, and click 'OK'.
Open Microsoft Excel and navigate to File > Options > Trust Center, then click the 'Trust Center Settings' button.
Select 'Macro Settings' from the left pane, choose 'Disable all macros with notification', and click 'OK' to save the changes.
Reopen the macro-enabled workbook. When the yellow security warning bar appears at the top of the sheet, click 'Enable Content' to activate the macros.

Use the Open and Repair Feature
Apply this solution if the workbook itself might be corrupted, causing Excel to crash when macros are enabled.
Run Excel in Safe Mode to Isolate Add-in Issues
Helpful if Excel crashes immediately upon enabling macros, which might indicate a conflict with an installed add-in.
Try WPS Office for a Stable Spreadsheet Experience
If Microsoft Excel continues to crash or struggle with complex files, consider switching to WPS Office. It provides a lightweight, highly stable alternative for handling spreadsheets, documents, and presentations seamlessly.
- 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
- 2. Install the software: Run the downloaded installer and follow the simple on-screen instructions to set up the office suite.
- 3. Open your spreadsheets: Launch WPS Spreadsheet and easily open your existing Excel files to continue your work without interruptions.

Frequently Asked Questions
Why is the 'Enable Content' button not showing in Excel?
This usually happens if your Trust Center settings are set to 'Disable all macros without notification', or if the file is stored in a location restricted by your organization's IT security policies.
Can a Windows or Office update cause Excel macros to stop working?
Yes, occasionally Microsoft Office or Windows security updates patch vulnerabilities that might inadvertently block certain macros or VBA components. Rolling back the recent update or contacting your IT administrator can help resolve this.
How do I add a specific folder to Trusted Locations in Excel?
Go to File > Options > Trust Center > Trust Center Settings > Trusted Locations. Click 'Add new location...', browse to your desired folder on your computer, check the box for 'Subfolders of this location are also trusted' if needed, and click OK.
Why does Excel crash and close other files when I enable macros?
Crashes upon enabling macros are often caused by corrupted workbook structures, conflicting COM add-ins, or an infinite loop written into the VBA code itself. Starting Excel in Safe Mode or using the 'Open and Repair' feature can help isolate and fix the cause.




