Macros in Microsoft Word help automate repetitive tasks, speed up document formatting, and improve productivity. If you have spent time creating custom macros, it is important to back them up or export them so they are not lost during Windows reinstallation, Office reinstallation, profile corruption, or when moving to a new PC.
Unlike documents, Word macros are not saved automatically with every file. They are usually stored in Normal.dotm or specific macro-enabled templates. The guide below explains how to safely back up and export Word macros step by step.
How to Backup or Export Macros in Word
Follow the methods below based on how your macros are stored and how you plan to restore them later.
1. Understand Where Word Macros Are Stored
Before backing up macros, it’s important to know their location.
- Most personal macros are stored in Normal.dotm
- Some macros are stored inside .dotm (template) files
- Others may be embedded directly in .docm documents
Backing up the correct file ensures your macros are preserved.
2. Backup Macros by Copying Normal.dotm (Most Common Method)
This is the easiest and most reliable way to back up Word macros.
- Close Microsoft Word completely
- Press Windows + R, type the following, and press Enter:
%appdata%\Microsoft\Templates
- Locate Normal.dotm
- Copy the file
- Paste it to a safe backup location (external drive, cloud storage, etc.)
This file contains most user-created Word macros.
3. Restore Macros Using Normal.dotm Backup
To restore macros on the same or another PC:
- Close Microsoft Word
- Navigate to:
%appdata%\Microsoft\Templates
- Replace the existing Normal.dotm file with your backup
- Open Word
Your macros will reappear automatically.
4. Export Macros Using the Visual Basic Editor (Manual Method)
This method lets you export individual macros or modules.
- Open Microsoft Word
- Press Alt + F11 to open the Visual Basic Editor
- In the left pane, expand Normal > Modules
- Right-click the module containing your macro
- Select Export File
- Save the file as .bas to a safe location
This is ideal if you want to move only specific macros.
5. Import Macros Back Into Word
To restore exported macro files:
- Open Word
- Press Alt + F11
- Right-click Modules under Normal
- Select Import File
- Choose the saved .bas file
- Close the editor and save changes
The imported macro will now be available.
6. Backup Macros Stored in Macro-Enabled Documents (.docm)
Some macros are saved inside documents.
- Locate the .docm file
- Copy the document to a backup location
- Open it later on any PC with Word
- Enable macros when prompted
This method keeps macros tied to a specific document.
7. Backup Macros Stored in Template Files (.dotm)
Templates are often used for reusable macros.
- Locate the .dotm template file
- Copy it to a backup location
- Restore it to the Templates folder later
- Restart Word
Template-based macros are common in business environments.
8. Enable Macro Security After Restoring
Macros may not run if security settings block them.
- Open Word
- Go to File > Options > Trust Center
- Click Trust Center Settings
- Open Macro Settings
- Choose an appropriate macro security level
Only enable macros from trusted sources.
9. Verify Macros After Backup or Restore
Always test your macros.
- Open Word
- Press Alt + F8
- Select your macro
- Click Run
- Confirm it executes correctly
Testing ensures nothing was lost during export.
10. Best Practices for Macro Backup
To avoid losing macros in the future:
- Keep a copy of Normal.dotm after major macro changes
- Export important macros as .bas files
- Store backups in cloud storage
- Document macro purpose and usage
This makes recovery quick and stress-free.
Final Thoughts
Backing up or exporting macros in Word is essential if you rely on automation for daily tasks. Whether you copy Normal.dotm, export macros using the Visual Basic Editor, or back up macro-enabled documents, having a backup ensures your work is never lost.
For most users, copying Normal.dotm is the fastest and safest method, while exporting .bas files is ideal for sharing or selective restoration.