How to Fix Security Warnings When Opening Macro-Enabled DOCM Files
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.
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.
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.
Open File Explorer and navigate to the folder where your downloaded DOCM file is saved.
Right-click the DOCM file and select 'Properties' from the context menu.
On the General tab, look for a 'Security' section at the bottom. Check the box next to 'Unblock', then click 'Apply' and 'OK'.
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.
Seek Specialized Support for VBA Errors
If you successfully enable macros but the VBA code fails to execute properly, you will need developer-specific troubleshooting.
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.

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.




