logo
search
Security Policy Errors

How to Fix Security Warnings When Opening Macro-Enabled DOCM Files

Maira MehtabMaira Mehtab Sep 28, 2026 868 views

Question details

Users encounter an additional security warning preventing macros from running when opening a .docm file downloaded from the internet.

Product
Microsoft Word
Device & OS
not provided
Scenario
Opening a macro-enabled Word document (DOCM) that was obtained from an internet source or email attachment.
Observed behavior
Office preview builds display a security warning indicating that macros have been blocked to protect against potentially unsafe content.
Before you start

Verify the exact source of your downloaded document before proceeding. Malicious macros can severely harm your computer, so you should never enable them unless you completely trust the sender and understand what the macro does.

Solution 1Recommended

Unblock and Safely Enable Trusted Macros

Use this method to manually verify and unblock a specific DOCM file if you are absolutely certain the source is safe.

Recent updates to Microsoft Office have tightened security policies, effectively blocking macros in files originating from the internet by default. This is an intentional defense mechanism against malware.

1
Locate the file

Open File Explorer and navigate to the folder where your downloaded DOCM file is saved.

2
Open file properties

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

3
Unblock the file

On the General tab, look for a 'Security' section at the bottom. Check the box next to 'Unblock', then click 'Apply' and 'OK'.

4
Open and enable content

Double-click the file to open it in Word. If a yellow message bar appears at the top, click 'Enable Content' to allow the macros to run.

Security Updates: As Office preview builds move toward release, security guidance may evolve. Always keep your Office suite updated to ensure you have the latest security patches.
Free Microsoft Office alternative

Try WPS Office for Seamless Document Management

If you are frustrated by complicated security policies, constant update changes, or heavy preview builds in Microsoft Office, consider switching to WPS Office. It provides a lightweight, highly compatible, and user-friendly environment for all your document needs.

Completely free and lightweight Office suiteExcellent compatibility with Microsoft Word formats (.docx, .doc, .docm)Familiar tabbed interface with zero learning curveNo complicated migration processes required
microsoft office alternative - wps office

Frequently Asked Questions

Why am I suddenly seeing a security warning for my DOCM files?

Microsoft recently updated its security policies in Office to automatically block macros in files downloaded from the internet. This is a default security measure designed to protect users from macro-based malware attacks.

How can I permanently unblock a specific downloaded document?

You can unblock it by right-clicking the file in File Explorer, selecting Properties, and checking the 'Unblock' box at the bottom of the General tab. After clicking Apply, the file will be treated as locally trusted.

Does WPS Office support DOCM files?

Yes, WPS Office supports opening and editing Microsoft Word macro-enabled document formats (.docm), ensuring high compatibility with your existing files while providing a seamless user experience.

What should I do if my macro code still has errors after unblocking?

If the file is unblocked but the macro still fails, the issue is likely within the VBA code itself. It is recommended to isolate the problematic code in the Visual Basic Editor and seek help on developer forums like Stack Overflow using the VBA tag.