toolbar customization

I

inge

Hello,

I have added a custom menu-item to the menubar. To this custom menu I have
added a number of options that are linked to macro's.
The macro's are also linked to a keyboard shortcut.

For the Word default menu-items the shortcut is displayed on the right side
of the item. This is not the case for customized shortcuts.
Does any one know whether I can make these shortcuts visible? Typing the
shortcut behind the name of the toolbar item is not helpfull, the alignment
goes wrong then.
 
K

Klaus Linke

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
 
I

inge

Hi Klaus,

Thanks a lot. This is exactly what I was looking for and could not find.

Inge
 

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