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

Expanding Width of All Tables

If you have a lot of tables in your documents, you might want to change the width of all of them. You can take forever ...

Discover More

Font Changes when Pasting to Another Document

When you copy information from one document and paste it into another, you may not always get what you expect. If the ...

Discover More

Moving to the Start or End of the Real Document

The main body of your text is only one part of what makes up the entire document. Documents can consist of other ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2021 or Microsoft 365. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word Step by Step today!

More WordTips (ribbon)

Weird Document Numbers

By default, Word numbers any new documents you create. If you notice that the numbers used by Word are rather strange, ...

Discover More

Direction Arrows Confused

What do you do if you open a document, only to find that the arrow keys don't work the way that they should? The first ...

Discover More

Understanding Picas

Word can understand many different measurement units. One common unit understood by Word is the pica, described in this tip.

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 two less than 6?

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.