You can add buttons to the Quick Access toolbar (which are automatically assigned Alt shortcuts) or you can write a macro using the Macro Recorder. So, you have a couple of options in Excel. Recommended article: 10 Excel Data Entry Tricks and Shortcuts Every User Should Knowĭo you want to learn more about Excel? Check out our virtual classroom or live classroom Excel courses > In the Customize Ribbon category, there is a Keyboard Shortcuts Customize button that is not available in Excel. In Word, you can assign keyboard shortcuts through the Options command on the File tab. Unfortunately, Excel doesn't offer a keyboard assignments command similar to the one available in Microsoft Word. However, you may also want to write your own keyboard shortcuts for specific commands. Microsoft Excel has many built-in shortcuts as well as the ability to navigate and select in the Ribbon using the keyboard. Then I disable the active window title detection with the empty #IfWinActive at the end.Īlso, once the #IfWinActive is hit, I know exactly which window will receive the keys I'm sending, so I don't have to do anything special beyond a simple "Send " in response to each real key-press that is to be replaced.By Avantix Learning Team | Updated March 24, 2021Īpplies to: Microsoft ® Excel ® 2013, 2016, 2019 and 365 (Windows) The "#IfWinActive" ensures these particular key-press replacements only apply when the active window's title ends with the string " - Outlook" (the end is marked by the dollar sign, which works because I've enabled Regular Expression based string matching mode above). The script looks like so: SetTitleMatchMode RegEx Or whenever I press I want to go to the search box (d'oh!) but Outlook expects a for that so I have the script send it a. So for example whenever I have an e-mail selected and press I want it to be marked as read, therefore I have the AutoHotkey script replace that with a. My solution is to use AutoHotkey to "translate" my desired key combinations into the existing shortcuts that Outlook 2016 (or Excel 2016 or what have you) expects for those actions. To me all above answers are unsatisfactory because they limit what combinations I can use as custom shortcuts or what actions I can target, or they require way too much work for something that should be simple. With VBA you can actually create longer combos like Ctrl-Shft-N (one of my favorites). You only have the choice of Ctrl and one key, I believe. With #3 it's still the same as it was in earlier versions, just go into the Macro dialog and change the shortcut in Options.
still exist behind the scenes in Excel 20 and can be accessed via code). The only way I know to do this now would be to change the toolbar name in VBA (the old toolbars, File, Edit, etc. For example you could change the name of the Edit menu from &Edit to &Zdit and the shortcut sequence in #2 above would be changed to Alt-Z-S-V. You use to be able to do #2 in Excel by going into Tools > Customize and then changing the location of the ampersand.
Of course you can write a macro in Excel that changes the Bold property and then assign a keyboard shortcut to it, but that really falls under #3 above. I don't think Excel has ever allowed you to do this. With # 1 I think only Word allows you to change these, e.g., you can change the shortcut for Bold from Ctrl-B to something else. There are 3 different kinds of keyboard shortcuts I know of: