The short cut
After running , this section, sections might want to be
' commented out. On the other hand, I am plagued by my short cuts vanishing in Word versions above 2010, and I don't think setting them when they are already there, set, does any harm.
As often the lack of concise documentation or any easily findable help, or knowledge meant some basic trial and error research was necessary to get near a good understanding here. I have not investigated this thoroughly yet, but the following statements my be close.
These sorts of statements may be fairly reliable to set a shortcut to a macro in the
Normal dot
, and as may be good practice, the code lines to remove the short cut are also included
Code:
CustomizationContext = NormalTemplate '
' Example: Hold the Ctrl+Shift key down and hit H key , remove all fingers, then hit L Key ( Ctrl + Shift ) + H ; L
' https://eileenslounge.com/viewtopic.php?p=332884#p332884 CTRL 512 SHIFT 256 H 72 L 76
KeyBindings.Add KeyCategory:=wdKeyCategoryCommand, Command:="Normal.NewMacros.TestHelloInNormal", KeyCode:=BuildKeyCode(wdKeyControl, wdKeyShift, wdKeyH), KeyCode2:=wdKeyL
KeyBindings.Add KeyCategory:=wdKeyCategoryCommand, Command:="Normal.NewMacros.TestHelloInNormal", KeyCode:=512 + 256 + 72, KeyCode2:=76
CustomizationContext = NormalTemplate
FindKey(KeyCode:=512 + 256 + 72, KeyCode2:=76).Disable
That would be the shortcut key combination of
_ Holding the two keys,
Ctrl+Shift down and hit
H key , then remove all fingers and then hit
L Key
This example would assume that you have a macro in the
NewMacros module in the
Normal dot called
Sub TestHelloInNormal() , as I do
https://i.postimg.cc/hG5nGRVX/A-macro-in-Normal-dot.jpg
A macro in Normal dot.jpg 
This is reasonably OK and solid, at least if you go not much further than sort cuts for your
Normal dot .
Things can be a bit more involved, especially if you want to consider short cuts specific to a workbook.
I think for now, I will therefore break off o a new post here
_.......... next post
Bookmarks