C
Cameron Powell
I have a template that is a workgroup template. When it is opened I would
like the keys Alt+S to execute the macro that is embedded. I tried to place
the following code in a macro called AutoNew()
Sub AutoNew()
Res = MsgBox("Test")
CustomizationContext = ActiveDocument
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, _
wdKeyS), KeyCategory:=wdKeyCategoryMacro, _
Command:="ShippingLabels"
End Sub
I inserted the Message box in there as a test and it does not run either. My
normal template does not include any auto macros, and I do have auto macros
enabled. Does anyone have any ideas?
like the keys Alt+S to execute the macro that is embedded. I tried to place
the following code in a macro called AutoNew()
Sub AutoNew()
Res = MsgBox("Test")
CustomizationContext = ActiveDocument
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, _
wdKeyS), KeyCategory:=wdKeyCategoryMacro, _
Command:="ShippingLabels"
End Sub
I inserted the Message box in there as a test and it does not run either. My
normal template does not include any auto macros, and I do have auto macros
enabled. Does anyone have any ideas?