Generating a Shortcut Key List

Written by Allen Wyatt (last updated July 19, 2025)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365


1

Barbie wonders if there is a way, via macro, to generate a list of all shortcut keys and what they do. It would be beneficial to also know if the shortcut is built-in or custom and whether a built-in shortcut key has been overridden by a custom shortcut.

There are obviously lots of shortcut key lists that you can find online or you can even purchase fancy versions that are printed and laminated. The problem is, though, that this doesn't solve Barbie's query—she wants the list to include both built-in and custom shortcuts, which is something you cannot find online. (The online and fancy ones only cover built-in shortcuts.)

Within Word, you can print a list of custom shortcuts by pressing Ctrl+P and then, using the Settings drop-down, choosing Key Assignments. That approach doesn't provide you with a list of the built-in shortcut keys, however.

Perhaps the most complete approach is to follow these steps:

  1. Press Alt+F8. Word displays the Macros dialog box.
  2. Using the Macros In drop-down list (near the bottom of the dialog box), choose Word Commands. Word fills out the macros list quite extensively with Word commands.
  3. Scroll through the available commands and select the ListCommands command. (Commands are in alphabetic order.)
  4. Click the Run button. Word displays the List Commands dialog box. (See Figure 1.)
  5. Figure 1. The List Commands dialog box.

  6. Choose Current Keyboard Settings. (This radio button should be selected by default.)
  7. Click OK.

Word creates a new, lengthy document that lists every keyboard shortcut on your system. Both built-in and custom shortcuts are included, but the table doesn't provide any indication as to whether a particular shortcut is built-in or custom. If you compare the list of shortcuts to the one that can be printed out, you can easily locate and mark the custom shortcut keys.

Also, you'll notice that the table that is created has the shortcuts split into two columns—one for the modifier keys and one for the primary key. I'm not privy to Microsoft developer conversations, but I suspect this was done so that you can sort the table by the primary key, if desired.

It is possible to create a macro to generate a list of keyboard shortcuts, as Barbie suggested, but it is not a trivial undertaking. Many people will use a macro to step through the KeyBindings collection, examining each KeyBinding object, paying particular attention to the Command and KeyString properties. These return the command "bound" to the shortcut key, along with the string of keys that make up the shortcut.

This seems straightforward enough, until you realize that each KeyBinding object has a Context property that indicates whether the binding is contained in the document, in a template, or as part of the Application object. The Application object, as a context, has almost no meaning because the KeyBindings collection only contains custom shortcut keys, not any built-in shortcuts. In fact, to my knowledge, Word doesn't expose the built-in shortcuts to VBA at all.

There is a theoretical way around this, however. You could call the ListCommands command from within your macro, which would create a document that contains all shortcuts, built-in and custom. Your macro could then step through the very long table created by ListCommands and pull out all the shortcuts. The macro could mark all the shortcuts as "built-in," and then step through the KeyBindings collection and compare what was in the table to what is in the collection. If the shortcut in a KeyBinding object has a Command property and KeyString property that match what was listed in the ListCommands table, then that shortcut could be switched to "custom." If only the KeyString property matched what was in the table, and the Command differed, then you can assume that you have a case where the custom shortcut overrides the built-in shortcut.

Like I said, the macro approach is not a trivial matter. It is easier, again, to generate a ListCommands table document and then manually compare to the custom commands printout you can create.

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

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

Using an Exact Number of Digits

Excel allows you to format numeric data in all sorts of ways, but specifying a number of digits independent of the ...

Discover More

Exact Formula Copies

When you copy a formula from one cell to another, Excel normally adjusts the cell references within the formula so they ...

Discover More

Reapplying Styles Seamlessly

Styles are a very powerful feature in Word, as they allow you to consistently apply complex formatting throughout a ...

Discover More

Do More in Less Time! An easy-to-understand guide to the more advanced features available in the Microsoft 365 version of Word. Enhance the quality of your documents and boost productivity in any field with this in-depth resource. Complete your Word-related tasks more efficiently as you unlock lesser-known tools and learn to quickly access the features you need. Check out Microsoft 365 Word For Professionals For Dummies today!

More WordTips (ribbon)

Understanding WIZ Files

A file that uses the WIZ extension will open just fine in Word. What are these files, however, and how do you create them?

Discover More

Adjusting Gridline Spacing

Word has a gridline feature that can be helpful for aligning objects in a document. If you want to adjust the spacing ...

Discover More

Using the Style Area

The style area is an esoteric feature of Word that allows you to easily see the styles applied to the paragraphs in your ...

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 7 + 5?

2025-07-19 11:50:22

Barbie

Thank you so much! I have yet to try it, but hopefully now I can track down and reset the shortcut I am hitting accidentally. (And as a bonus, maybe find keyboard shortcuts I didn't know were there to use...)
As a side note... Why does Microsoft find it necessary to redefine default shortcuts? On a new version of Word, I used the same built-in shortcut I always had, and something unexpected happened! After realizing it wasn't my fingers hitting the wrong keys, I went in and set it back to the shortcut I was used to using...


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.