Assigning a Macro to a Shortcut Key

Written by Allen Wyatt (last updated August 3, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and 2021


6

Word allows you to assign macros or commands to specific key combinations. These key combinations are referred to as shortcut keys, and when used they result in the macro or command being executed. When you first create a macro by recording it, Word gives you the opportunity to assign the macro to a specific key combination. If you later want to change the key combination, you can follow these steps:

  1. Display the Word Options dialog box. (In Word 2007 click the Office button and then click Word Options. In Word 2010 or a later version, display the File tab of the ribbon and then click Options.)
  2. At the left side of the dialog box, click Customize (Word 2007) or Customize Ribbon (Word 2010 or later).
  3. Near the bottom of the dialog box, click the Customize button. Word displays the Customize Keyboard dialog box. (See Figure 1.)
  4. Figure 1. The Customize Keyboard dialog box.

  5. Scroll through the Categories list and select the Macros category. The list at the right side of the dialog box changes to show the currently available macros.
  6. In the Macros list, select the macro you want assigned to the shortcut key.
  7. With the insertion point in the Press New Shortcut Key box, press the shortcut key you want to use. For instance, if you want to use Ctrl+Alt+J, press that.
  8. Just below the Current Keys box you can see whether the shortcut key is already assigned to a different function.
  9. Click on Assign.
  10. Repeat steps 5 through 8 for each change you want to make.
  11. Click on Close.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (8058) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and 2021.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Fixing Mismatched Bullets and Numbers

When you format bulleted lists or numbered lists, you may be surprised if some of the bullets or numbers don't match the ...

Discover More

Very Slow Document Opening with Excel Links

When you link parts of your document to other sources (such as an Excel workbook), you can make opening your document ...

Discover More

Deleting VBA Code in a Copied Worksheet

VBA makes it easy to copy a worksheet from the current workbook into a brand-new workbook. You may want to delete some ...

Discover More

Discover the Power of Microsoft Office This beginner-friendly guide reveals the expert tips and strategies you need to skyrocket your productivity and use Office 365 like a pro. Mastering software like Word, Excel, and PowerPoint is essential to be more efficient and advance your career. Simple lessons guide you through every step, providing the knowledge you need to get started. Check out Microsoft Office 365 For Beginners today!

More WordTips (ribbon)

Deleting a Macro

Macros are often created to accomplish a specific task, after which they are no longer needed. If you need to delete a ...

Discover More

Determining the Size of a File

When processing a document using a macro, you may need to know the precise size of a particular file. The way you figure ...

Discover More

Converting Numbers to Text

Got some numbers you need spelled out? Here's a handy macro that can convert numbers like "123" to words like "one ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is eight minus 8?

2024-08-08 11:54:54

Timothy J. McGowan

@Rachel:

You can make all your shortcuts two-keyers. (I'm obviously lacking the technical term.)

For example, in default installations of Word, you can press Ctrl+/ and then C to insert a ¢ symbol.

We can do the same thing ourselves. For your XRHand macro, you could assign it Ctrl+Shift+X,H. You could assign your XRChest macro Ctrl+Shift+X,C.

You can use any combination of Ctrl or Alt, with or without Shift, or all three, plus a key for the first stroke. The second stroke cannot accept Ctrl or Alt but it can accept a Shift key to double your options.

The characters on the Number Pad are not the same as their counterparts on the main keyboard, so Ctrl+NumPad5 is not the same as Ctrl+5 and Alt+NumPad* is not the same as Alt+*.

Options for the first stroke: Alt+key, Ctrl+key, Alt+Ctrl+key, Shift+Alt+key, Shift+Ctrl+key, or Shift+Alt+Ctrl+key. (The Windows key is not an option.)

Options for the second stroke: key, Shift+key.

Remember that you're not tied to printable characters; you can also use the direction keys; Insert, Home, etc.; Backspace and Enter; and the F keys.

You can use the Print Screen, Scroll Lock, and Pause/Break keys as well, but I'd avoid them, as they can sometimes have systemwide effects and they don't always accept all combinations of Ctrl, Alt, and Shift.

Obviously, Ctrl+Alt+Delete isn't available. Assign macros to common shortcuts, such as Ctrl+P or Ctrl+C, at your own risk.


2024-07-26 17:32:02

Rebecca

I have more macros than available shortcut keys (hundreds of them!) - is there a way to assign them differently ie I want to populate a chest x-ray macro can I assign as XRCHEST or a hand x-ray as XRHAND etc?


2024-02-17 08:47:46

Lenny

I appreciate your articles!


2023-11-05 22:19:13

Lenny

Thanks!
Great info (as always!)
Lenny


2020-11-24 23:30:01

Mario

Re Items 1. to 3.:
In Word365 for Mac delete all and replace with:
Go to Tools/Customize Keyboard


2020-02-16 20:33:02

mauro

In the categories list, why do you think the Micro$oft programmers included hundreds of categories in random order, rather than say alphabetical order which might make them easier to find?


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.