Hi Inge,
CommandBars("yourToolbar").Controls("yourControl").ShortcutText = "Alt+<"
Shortcuts you define aren't added automatically (as you already noticed),
and Word doesn't make sure you enter a valid keyboard shortcut.
If you don't get the line above working, you could also set it from the
macro that's run.
Put this line in the macro
CommandBars.ActionControl.ShortcutText = "Gotcha"
and click on the button once so the macro is run.
The ShortcutText will have been set, and you can delete or comment out the
line.
Regards,
Klaus
> Hello,
>
[quoted text clipped - 9 lines]
> alignment
> goes wrong then.
inge - 31 Aug 2005 20:58 GMT
Hi Klaus,
Thanks a lot. This is exactly what I was looking for and could not find.
Inge