How to Fix Cannot Open or Run a Macro-Enabled Email Attachment
Question details
The user is unable to open or run a macro-enabled attachment received via email due to security blocks, policy changes, or file restrictions.

- Product
- Email Client / Office Software
- Device & OS
- not provided
- Scenario
- Attempting to access and execute a macro-enabled file (such as .xlsm or .docm) directly from an email message.
- Observed behavior
- The attachment is blocked from opening, or the embedded macros are disabled and refuse to run even when instructed.
Verify that the email sender is trusted and that you were expecting this specific attachment, as macro-enabled files can sometimes contain malicious code.
Save the Attachment Locally and Unblock the File
Downloading the file to your computer and removing the 'Mark of the Web' security block is the most reliable way to restore access to the attachment.
Modern operating systems and Office programs apply a security tag to files downloaded from the internet or received via email. This tag automatically blocks macros from running. You must save the file locally and manually unblock it to bypass this security measure.
Right-click the macro-enabled attachment in your email client and select 'Save As'. Choose a local folder on your computer, such as your Desktop or Documents, and save the file.
Navigate to the folder where you saved the file. Right-click the file icon and select 'Properties' from the context menu.
In the General tab, look for a 'Security' section at the very bottom. Check the box labeled 'Unblock', then click 'Apply' and 'OK'.
Double-click the unblocked file to open it in your Office application and verify that the macros can now run properly.

Adjust Macro Security Settings in Trust Center
If the file is already unblocked but macros remain disabled, your Office application's security settings might be restricting all macro execution.
Check Antivirus Software and IT Network Policies
Strict email filters, third-party antivirus software, or corporate network policies can aggressively block macro-enabled files from being opened.
Open and Manage Office Attachments Securely with WPS Office
WPS Office provides a highly compatible and secure environment to open, view, and edit email attachments. Its intuitive interface lets you easily manage document security while maintaining seamless compatibility with complex Microsoft Office file formats.
- 1. Install the software: Download and install the free version of WPS Office on your computer.
- 2. Download the attachment: Save the problematic email attachment directly to a local folder on your hard drive.
- 3. Open securely: Right-click the saved file, select 'Open with', and choose WPS Office to safely view and edit the document.

Frequently Asked Questions
Why are macro-enabled attachments blocked by default?
Macro-enabled files (like .xlsm or .docm) can contain embedded scripts that run malicious code or viruses. Email providers and Office applications block them automatically as a precaution to protect your system from potential security threats.
What is the Mark of the Web (MOTW)?
The Mark of the Web is a hidden security attribute applied by Windows to files downloaded from the internet or saved from email clients. It forces Office applications to open the file in Protected View and strictly blocks macros until you manually unblock the file in its properties.
Can I run macros without unblocking the file first?
Typically, no. Recent security updates in Microsoft Office require you to explicitly unblock the file via the Windows Properties menu before macros can be executed, even if you try to click 'Enable Content' inside the app.
What should I do if the 'Unblock' checkbox is missing in file properties?
If the 'Unblock' option is missing, it means the file is either not restricted by the Mark of the Web, or your organization's IT policy is enforcing a deeper restriction. Ensure the file is saved to a local drive rather than a network share, or consult your IT administrator.




