Application.FindKey procedure builder

Application.FindKey (Word)

Returns a KeyBinding object that represents the specified key combination.

You can use the BuildKeyCode method to create the KeyCode or KeyCode2 argument.

FindKey (KeyCode, KeyCode2)

CustomizationContext = ActiveDocument.AttachedTemplate 
FindKey(KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyShift, _ 
 wdKeyF12)).Disable

Arguments

The following argument is required

KeyCode (Long) - A key you specify by using one of the WdKey constants.

Optional arguments

The following argument is optional

KeyCode2 - A second key you specify by using one of the WdKey constants