Hello,
This is the same process in Word 2010 to Word 2021 (and 365) in the desktop versions.
If these are macros you are going to be using regularly and do not need to "tweak" in the visual basic explorer, I would recommend first moving them to a new
Global Template to insulate them from "stuff" that seems to happen to the
Normal Template. This will also make it easier to move or share them. You can do this using the
Organizer. That link shows you how to get to the Organizer for styles, but once you are there, you can click on the tab for macros.
Once you have the template where you are going to keep them open, you can assign your keyboard shortcuts, storing those shortcuts in the same template. I advise moving the macros first because it is not easy to copy/move keyboard shortcuts. I know of only one way:
Chris Woodman's Keyboard Shortcut Organizer.
So, at this point you have your macros where you want them. If stored in a global template, that template is the open document on your screen.
If still in your normal template, that is OK, the normal template does not have to be specially opened.
- File > Options > Customize the Ribbon.
- Click on the button to Customize Keyboard shortcuts (bottom left)
- Find "Macros" in the list on the left, then find your macro that you want to assign a shortcut.
- Make sure you have the template where you want to store them selected each time you assign a shortcut.
- Click in the box for the shortcut and then press the keyboard shortcut you want to use.
Word will tell you if this is already used for something. If it is, you can still use it, or backspace to blank your shortcut and try a different one.
Click on the Assign button.
- Go to your next macro and shortcut.
Important. You must press Close on this dialog box and OK on the Customize the Ribbon Dialog box to save your changes. If you are going to pause this process to do something else, OK your way out so you don't lose your work.
Be aware that you can use a
prefix or trigger shortcut for a number of different macros.
Recently I assisted someone who wanted shortcuts for macros to insert the symbols for card suits and found that the keyboard shortcut Ctrl+Alt+Shift+D was not available in Word for Diamonds. (He wanted to use C, D, H, and S with the shift keys for this.)
Instead used Ctrl+Alt+Shift+C followed by the different letters for the four suits. The Ctrl+Alt+Shift+C sets Word up to wait for one of those four assigned to trigger a macro.
Using prefixes like this can help keep you from running out of shortcuts and can help organize them.
See also my article:
Assigning Keyboard Shortcuts in Microsoft Word 2007-2021 (365)