Office Settings & Configuration

How to Fix Word Macros Blocked in Older Documents

Kushani NimanthikaKushani Nimanthika Oct 22, 2026 869 views

Question details

The user needs a way to successfully execute macros in older Microsoft Word documents where they are currently blocked due to security restrictions.

How to Fix Word Macros Blocked in Older Documents
Product
Microsoft Word
Device & OS
not provided
Scenario
Running existing VBA macros in older or received Microsoft Word documents.
Observed behavior
Macros run normally in newly created documents but are blocked in older files with a warning message stating the file source is untrusted.
Before you start

Verify that your older documents are from a secure origin, and ensure you have copied any essential VBA code to a safe text file before modifying global templates.

Solution 1Recommended

Store Macros as a Global Add-in in the Word Startup Folder

Saving your macros inside a macro-enabled template within the Word Startup folder allows them to load globally as an add-in, bypassing the document-specific trust blocks on older files.

By converting your macros into a global template, Microsoft Word will load them automatically every time the application opens. This ensures your trusted macros remain accessible regardless of the individual security status of the older documents you are editing.

1
Copy your existing macro code

Open Microsoft Word, navigate to the 'View' tab, click on 'Macros', select 'View Macros', and click 'Edit'. Copy all the necessary VBA code from the editor.

2
Paste the code into a new document

Create a brand new blank Word document. Paste your copied macro code into the macro editor associated with this new document. Avoid using plain text editors like Notepad for this step.

3
Save as a Macro-Enabled Template

Click 'File' > 'Save As'. Choose the 'Word Macro-Enabled Template (*.dotm)' format. Navigate to your Startup folder, typically located at %appdata%\Microsoft\Word\Startup, and save the file.

4
Restart Microsoft Word

Close all active instances of Microsoft Word and restart your computer if necessary to ensure the new global template loads as an add-in.

Store Macros as a Global Add-in in the Word Startup Folder
Editing Global Macros: You cannot edit macros while they are actively loaded as a background add-in. To modify the code later, you must manually navigate to the Startup folder and open the .dotm template file directly in Word.
Free Microsoft Office alternative

Experience Hassle-Free Document Editing with WPS Office

If strict security blocks and complicated macro settings in Microsoft Word are slowing down your productivity, consider trying WPS Office. It provides a lightweight, highly compatible environment for seamless document processing.

  1. 1. Download the software: Visit the official WPS website to download and install the free WPS Office suite on your device.
  2. 2. Open legacy documents: Launch WPS Writer and simply open your older document files to begin editing immediately.
  3. 3. Work seamlessly: Enjoy standard word processing tasks with a streamlined, fast, and familiar user interface.
Outstanding compatibility with Microsoft Word formats, including .doc and .docx filesLightweight design that minimizes heavy background processes and system lagFamiliar ribbon interface ensuring a zero-learning-curve transition
microsoft office alternative - wps office

Frequently Asked Questions

Why do my macros work in new Word documents but not older ones?

Older documents, especially those received via email or downloaded from the internet, may carry a 'Mark of the Web' which causes Microsoft Word's Trust Center to flag them as an untrusted source, thereby blocking macros. New, locally created documents bypass this specific security check.

Where is the default Word Startup folder located?

By default in Windows environments, the Word Startup folder is located at %appdata%\Microsoft\Word\Startup. You can quickly access this by pasting the path directly into your File Explorer address bar.

Why can't I edit my macros after saving them in the Startup folder?

When a macro-enabled template (.dotm) is loaded from the Startup folder, Microsoft Word treats it as an active global add-in. You cannot directly edit the code of a loaded add-in. To modify the macro, you must use 'File > Open' to open the actual .dotm file from the Startup directory.