Ulf Nilsson was telling us:
Ulf Nilsson nous racontait que :
> How do I use keybindings when the macro is not to be found under
> Tools - Customise... - Keyboard... - Macros?
Try something like this:
CustomizationContext = NormalTemplate
KeyBindings.Add KeyCode:=BuildKeyCode(wdKeyAlt, _
wdKeyZ), KeyCategory:=wdKeyCategoryMacro, _
Command:="TestModule.Main"
This will assign the the ALT-Z shortcut to the Main macro in the TestModule.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Ulf Nilsson - 18 Jul 2005 14:11 GMT
Since I work with Office XP Dev and create dll, I cannot use any template to
attach any macro. Because of this, I do not think I can use KeyBindings.
Please correct me if I'm wrong.
I was thinking of another solution: If I press the following keys, I can
access my item: Alt + e, n, i
Is it possible to create such a macro in Normal.dot, that is NormalTemplate,
using my macro and call it MyMacro? Then I can use keyBindings?
Or can I set Alt + e, n, i instead of "TestModule.Main"?
/ Ulf
> Ulf Nilsson was telling us:
> Ulf Nilsson nous racontait que :
[quoted text clipped - 10 lines]
>
> This will assign the the ALT-Z shortcut to the Main macro in the TestModule.