CustomizationContext Property Example
This example adds the ALT+CTRL+W key combination to the FileClose command. The keyboard customization is saved in the Normal template.
CustomizationContext = NormalTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyControl, _
wdKeyAlt, wdKeyW), _
KeyCategory:=wdKeyCategoryCommand, Command:="FileClose"
This example adds the File Versions button to the Standard toolbar. The command bar customization is saved in the template attached to the active document.
CustomizationContext = ActiveDocument.AttachedTemplate
Application.CommandBars("Standard").Controls.Add _
Type:=msoControlButton, _
ID:=2522, Before:=8