P
Peter Faulhaber
Hi All,
I defined a lot of keybindings. Only the first one is working. Any idea?
Sub Toetsen()
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyT), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Tip"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyW), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Waarschuwing"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyI), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Visionummer"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyH), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Helpfunctie"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyR), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Rapport"
End Sub
I defined a lot of keybindings. Only the first one is working. Any idea?
Sub Toetsen()
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyT), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Tip"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyW), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Waarschuwing"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyI), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Visionummer"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyH), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Helpfunctie"
CustomizationContext = ActiveDocument.AttachedTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, wdKeyR), KeyCategory:= _
wdKeyCategoryMacro, Command:="Invoegen.Rapport"
End Sub