I have a number of add-ins with procedures to which I bind keystrokes. I want to be able to see what keystrokes are currently bound, either built-ins like Ctrl-P for Print or my custom ones.
I've found that if you export a module whose procedures have key bindings there's an Attribute line which indicates the keystroke.
It looks like this for Ctrl-m:
It looks like this for Ctrl-Shift-w:
But doesn't the object model have key bindings buried in it somewhere, sort of like Word.KeyBindings? I've search the Internet, I've search even hidden members in the Object Browser, and I can't find a thing.
I've found that if you export a module whose procedures have key bindings there's an Attribute line which indicates the keystroke.
It looks like this for Ctrl-m:
VBA Code:
Attribute ShowMacroKeys.VB_ProcData.VB_Invoke_Func = "m\n14"
VBA Code:
Attribute TravelFormulas.VB_ProcData.VB_Invoke_Func = "W\n14"