VBA - Command Button Shortcut Key

L

Linda

http://word.mvps.org/FAQs/Customization/CmdBtnShrtcutKey.htm

I have been following the instructions on the article (link above) on how to
get a menu button that is assigned to a macro to display the keyboard
shortcut on the menu. My toolbar name is field and my button name is
highlighted but I am still unable to get the shortcut key to display. I have
run the macro wording in the Immediate Window and used both quotes around the
item names and without, for example:

CommandBars(Field).Controls(Highlighted).ShortcutText="Ctrl+Shift+I"

and also:

CommandBars("Field").Controls("Highlighted").ShortcutText="Ctrl+Shift+I"

but neither code seems to work, I am using Word 2003. I have been able to
make this code work in an earlier version of Word and the code must have
worked then, although this was a long time ago and I haven't needed to do it
since.

I would be grateful of any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top