You have customized keyboard shortcuts in Word, but after changing or updating a template, all your shortcuts disappear and revert to default. This happens because Word stores custom keyboard shortcut assignments inside the template file that is attached to your document. When you switch templates or the attached template gets replaced, Word loads the shortcut settings from the new template instead of your custom ones. This article explains exactly why shortcuts reset and provides two reliable methods to restore or preserve your custom keyboard shortcut configuration.
Key Takeaways: Preserving Custom Keyboard Shortcuts in Word
- File > Options > Customize Ribbon > Keyboard shortcuts Customize button: Opens the Customize Keyboard dialog where all shortcut assignments live
- Save changes in the Normal.dotm template: Storing shortcuts in Normal.dotm keeps them available for all new blank documents
- Export keyboard shortcuts using a VBA macro: A one-time macro run generates a list of all current shortcuts for backup and re-import
Why Changing a Template Resets Your Keyboard Shortcuts
Word does not store custom keyboard shortcuts in a single central file. Instead, each shortcut assignment is saved inside a specific template file. When you create or open a document, Word loads the shortcuts from the template that is attached to that document. The default template is Normal.dotm, which is used for all new blank documents. If you attach a different template to a document, Word uses the shortcut settings from that template instead of Normal.dotm. If the new template has no custom shortcuts or has its own set, your custom shortcuts are gone.
The same behavior occurs when you update or replace the Normal.dotm template. For example, if you delete Normal.dotm and let Word rebuild it, all shortcuts stored in the old Normal.dotm are lost. Shortcuts are also reset when you run a repair on Office or when a group policy forces a template update in a corporate environment.
Understanding that shortcuts are template-bound is the key to fixing the problem. You must either save your shortcuts in the correct template or export them before a template change occurs.
Method 1: Save Custom Shortcuts in the Normal.dotm Template
The safest approach is to store all your custom keyboard shortcuts in Normal.dotm. This template loads automatically for every new document you create. Follow these steps to reassign your shortcuts and save them to Normal.dotm.
- Open the Customize Keyboard dialog
In Word, click File > Options > Customize Ribbon. At the bottom of the dialog, click the Customize button next to Keyboard shortcuts. - Select a command and assign a shortcut
In the Categories list, choose the tab or group that contains your command. In the Commands list, select the specific command. Click in the Press new shortcut key box and press your desired key combination. Click Assign. - Verify the Save changes in dropdown
Before closing the dialog, look at the dropdown labeled Save changes in. It must show Normal.dotm. If it shows anything else, change it to Normal.dotm. - Repeat for all custom shortcuts
Assign each shortcut you need, ensuring every assignment targets Normal.dotm. Click Close when finished. - Test the shortcuts
Close and restart Word. Open a new blank document and press your shortcuts. They should work as expected.
Method 2: Export and Re-Import Shortcuts Using a VBA Macro
If you have many shortcuts or work in an environment where templates are frequently updated, export your shortcuts to a text file. This method uses a VBA macro to list all current keyboard assignments. You can then use the list to re-create shortcuts manually or import them back via another macro.
- Open the VBA editor
Press Alt+F11 to open the Microsoft Visual Basic for Applications window. - Insert a new module
In the Project Explorer, right-click Normal or your document name. Choose Insert > Module. A blank code window appears. - Paste the export macro
Copy and paste the following code into the module window:Sub ExportKeyboardShortcuts()
Dim kb As KeyBinding
Dim doc As Document
Set doc = ActiveDocument
Open "C:\\ShortcutsBackup.txt" For Output As #1
For Each kb In KeyBindings
Write #1, kb.KeyString, kb.Command
Next kb
Close #1
MsgBox "Shortcuts exported to C:\\ShortcutsBackup.txt"
End Sub - Run the macro
Press F5 or click Run > Run Sub/UserForm. A message confirms the export. The file is created at C:\ShortcutsBackup.txt. - View the exported list
Open ShortcutsBackup.txt in Notepad. Each line shows a key combination and the command it runs. Use this list to manually reassign shortcuts after a template change.
Common Issues After a Template Change
Shortcuts disappear even though I saved them to Normal.dotm
If Normal.dotm itself was replaced or deleted, your shortcuts are gone. Word rebuilds a fresh Normal.dotm with default settings. To prevent this, back up your Normal.dotm file. The file is located at %appdata%\Microsoft\Templates. Copy Normal.dotm to a safe folder. If shortcuts disappear, close Word, replace the new Normal.dotm with your backup, and restart Word.
Shortcuts work in one document but not another
This occurs when the second document has a different attached template. Open the affected document. Click File > Options > Add-Ins. In the Manage dropdown, select Templates and click Go. In the Document template field, ensure it points to Normal.dotm. If it shows a different path, click Attach and select Normal.dotm.
Corporate group policy overrides my shortcut changes
In managed environments, IT administrators can enforce a global template that overwrites Normal.dotm at each login. In this case, the only reliable workaround is to use a VBA macro that runs automatically on startup and reapplies your shortcuts. Store the macro in your personal macro workbook or in a trusted add-in that is not subject to the policy.
| Storage Location | Normal.dotm | Other Template (.dotm or .dotx) |
|---|---|---|
| Shortcuts persist after template change | Yes, if template itself is not replaced | No, shortcuts are tied to the replaced template |
| Affects all new documents | Yes | Only documents using that template |
| Ease of backup | Easy — copy one file | Moderate — must know which template is attached |
| Works in corporate locked-down environments | No, if policy overwrites Normal.dotm | No, same limitation |
| Recovery after accidental deletion | Replace with backup file | Re-attach template or re-create shortcuts |
You can now prevent keyboard shortcut loss by storing all custom assignments in Normal.dotm and backing up that file. If you work in a managed environment, use the VBA export macro as a safety net. For maximum reliability, combine both methods: keep a backup copy of Normal.dotm and a text file of your shortcuts. The next time a template change resets your shortcuts, you can restore them in under two minutes.