How to Fix Microsoft Word Security Warning for Macros in Temporary Files
Question details
Users encounter a security warning in Microsoft Word that blocks macros when a document is opened from a temporary INetCache folder, even if macros are enabled.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- An external application opens a macro-enabled document from a temporary cache directory, triggering Word's built-in security protections.
- Observed behavior
- Word blocks the macro from running and displays a security warning. This often occurs when newer Microsoft 365 updates lock the macro file, preventing secondary Word instances from accessing it.
Verify the exact file path mentioned in the security warning, and ensure you are not opening macro-enabled templates directly from temporary internet folders or email attachments.
Store Macro-Enabled Templates in Word's Startup Folder
The most secure and reliable way to run essential macros is to move your macro-enabled templates to a permanent, trusted location rather than relying on a temporary folder.
Recent Office and Windows updates have tightened security against macros originating from the internet or temporary storage. Bypassing this by trusting temporary folders like INetCache is a significant security risk. Instead, you should designate a permanent trusted folder.
Find your essential macro-enabled template (.dotm) or add-in file and copy it to your clipboard.
Press the Windows key + R to open the Run dialog. Type %appdata%\Microsoft\Word\STARTUP and press Enter.
Paste your macro file into this Startup folder.
Close all instances of Microsoft Word and reopen the application. Files placed in the Startup folder are automatically trusted and loaded without security warnings.

Optimize Word Automation Logic for External Applications
If an external application is automating Word, it should be configured to reuse the existing Word instance to prevent macro file locking issues.
Experience Hassle-Free Document Editing with WPS Office
If you are tired of dealing with complex Microsoft Word security warnings, temporary cache file locks, and macro errors, consider switching to WPS Office. It provides a lightweight, highly compatible alternative for opening, editing, and managing your essential documents.
- 1. Download WPS Office: Visit the official WPS website and download the free installation package.
- 2. Install and Launch: Run the installer and open WPS Writer to access your documents effortlessly.

Frequently Asked Questions
Why does Word block macros specifically in the INetCache folder?
The INetCache folder is a temporary storage location for internet files. Microsoft Word blocks macros running from here to protect your system from potentially malicious scripts that may have been downloaded automatically from the web.
Is it safe to add a temporary cache folder to Word's Trusted Locations?
No, adding temporary internet folders to your Trusted Locations is a major security risk. You should never bypass warnings by trusting cache folders or globally enabling all macros.
How do I find the Microsoft Word Startup folder to store my macros safely?
The default path is typically C:\Users\[YourUsername]\AppData\Roaming\Microsoft\Word\STARTUP. You can quickly access it by typing %appdata%\Microsoft\Word\STARTUP in the Windows Run dialog.
Why did this macro file locking issue start happening recently?
Newer Microsoft 365 updates (such as Version 2209) introduced stricter security measures. These updates lock macro files when documents are opened externally, preventing newly created secondary Word instances from accessing them.




