VBA & Macro Problems

How to Fix Excel Macro Warnings and Automatic VBA Blocking

WPS EditorWPS Editor Oct 10, 2026 871 views

Question details

The user needs a way to stop new backup warnings for VBA projects and prevent Microsoft 365 from automatically disabling macros in important business workbooks.

Fixing Excel Macro Warnings and Automatic VBA Blocking
Product
Microsoft Excel (Microsoft 365)
Device & OS
not provided
Scenario
Opening and attempting to run VBA scripts in an essential business workbook.
Observed behavior
Excel displays unfamiliar warnings prompting the user to back up their VBA project, and subsequently blocks or disables the macros automatically, disrupting workflow.
Before you start

Before altering any security settings, verify that you have a secure backup of your business workbook and its VBA project, and write down the exact warning message for accurate troubleshooting.

Solution 1Recommended

Unblock the Specific Excel File via Windows Properties

This is the safest and most recommended method to allow macros to run on an individual file downloaded from the internet or received via email without lowering your system's overall security.

Microsoft 365 now automatically blocks macros in files that carry the 'Mark of the Web' (MotW). This means files originating from outside your local computer are restricted by default. Unblocking the specific file removes this restriction.

1
Close the Affected Workbook

Ensure that the Excel workbook with the blocked macros is completely closed so Windows can modify its properties.

2
Locate the File

Open Windows File Explorer and navigate to the folder where your business workbook is saved.

3
Open File Properties

Right-click the Excel file and select 'Properties' from the context menu.

4
Check the Unblock Box

At the bottom of the 'General' tab, locate the Security section. Check the box labeled 'Unblock' next to the warning, then click 'Apply' and 'OK'.

Unblock the Specific Excel File via Windows Properties
Safe Execution: By unblocking the file, Excel will now recognize it as safe, allowing you to enable and run the macros without triggering the automatic block.
Free Microsoft Office alternative

Tired of Microsoft 365 Subscription Hassles? Try WPS Office

If aggressive macro security updates and mandatory Microsoft 365 subscription changes are disrupting your business workflow, WPS Office offers a highly compatible, user-friendly, and cost-effective alternative without the forced interruptions.

  1. 1. Download the Suite: Visit the official website to download and install the free WPS Office application.
  2. 2. Open Your Spreadsheets: Launch WPS Spreadsheets, click on Menu, and select Open to seamlessly load your existing Excel workbooks.
  3. 3. Resume Your Work: View, edit, and analyze your business data in a familiar environment tailored for productivity.
Excellent compatibility with Microsoft Office formats, including .xlsx, .xls, and .xlsmFamiliar user interface that requires zero retraining for your business teamLightweight desktop application that runs smoothly without slowing down your PCCost-effective solution that avoids mandatory subscription updates breaking your workflow
QA img-9

Frequently Asked Questions

Why is Microsoft 365 suddenly blocking my Excel macros?

Microsoft recently updated its default security policy to automatically block VBA macros in files originating from the internet or email attachments. This 'Mark of the Web' (MotW) protection is designed to prevent malware and ransomware attacks.

Will reverting to Office 2019 or Office 2021 permanently stop these macro warnings?

Not necessarily. Microsoft deploys security updates across all supported versions of Office, including perpetual licenses like Office 2019 and 2021. The automatic macro blocking feature is a system-wide security enhancement that applies to these versions as well.

Can I completely disable macro security to stop the warnings?

While it is technically possible to enable all macros via the Trust Center, it is highly discouraged. Doing so leaves your system entirely unprotected against malicious scripts. It is much safer to unblock individual files or use designated Trusted Locations.

How do I safely back up my VBA project in Excel?

To back up your VBA code, press Alt + F11 to open the Visual Basic Editor. Right-click on your modules or user forms in the Project Explorer on the left, select 'Export File', and save them to a secure location on your hard drive.