Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2005

Tip: Looking for answers? Try searching our database.

toolbar customization

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
inge - 31 Aug 2005 15:55 GMT
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.
Klaus Linke - 31 Aug 2005 16:31 GMT
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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.