Security Policy Errors

How to Fix Microsoft Word Security Warning for Macros in Temporary Files

Olivia MillerOlivia Miller Oct 28, 2026 868 views

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.

How to Fix Microsoft Word Security Warning for Macros in Temporary Files
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.
Before you start

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.

Solution 1Recommended

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.

1
Locate the Macro File

Find your essential macro-enabled template (.dotm) or add-in file and copy it to your clipboard.

2
Open the Word Startup Folder

Press the Windows key + R to open the Run dialog. Type %appdata%\Microsoft\Word\STARTUP and press Enter.

3
Paste the File

Paste your macro file into this Startup folder.

4
Restart Microsoft Word

Close all instances of Microsoft Word and reopen the application. Files placed in the Startup folder are automatically trusted and loaded without security warnings.

Store Macro-Enabled Templates in Word's Startup Folder
Security Best Practice: Keeping macros in the designated Startup folder ensures they run smoothly without triggering temporary file security blocks.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS website and download the free installation package.
  2. 2. Install and Launch: Run the installer and open WPS Writer to access your documents effortlessly.
Highly compatible with Microsoft Office formats, including DOC, DOCX, and DOTM.Lightweight and fast, minimizing file lock and instance conflicts.Familiar ribbon interface for seamless migration without a learning curve.Free Microsoft Office alternative for everyday document editing.
microsoft office alternative - wps office

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.