?
Solved

How to add hot keys to an added control button

Posted on 2000-02-09
7
Medium Priority
?
224 Views
Last Modified: 2010-04-08
How am i able to link hot keys to control buttons created in both Menu file and toolbars?
0
Comment
Question by:JeromZ
  • 4
  • 3
7 Comments
 

Author Comment

by:JeromZ
ID: 2505923
Adjusted points to 50
0
 

Author Comment

by:JeromZ
ID: 2508908
Adjusted points to 80
0
 
LVL 3

Expert Comment

by:SMosher
ID: 2516336
Start with use View | Toolbar | Customize. Right-click on the button you want to customize, and change its Name to include an ampersand ( & ) in front of the letter that you want to use as a hotkey with the Alt key.
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 

Author Comment

by:JeromZ
ID: 2516760
Is there any way to do it programmatically using VB, VBA or VBScript?
0
 
LVL 3

Expert Comment

by:SMosher
ID: 2516791
In Outlook 2000, yes, you have the complete Office CommandBars object to work with. The CommandBarButton.Caption property is the equivalent of the Name in the UI.
0
 

Author Comment

by:JeromZ
ID: 2524763
Can show a sample code for me to follow?
0
 
LVL 3

Accepted Solution

by:
SMosher earned 320 total points
ID: 2525662
Adapted straight from the Help topics on the CommandBar and CommandBarButton objects in Office 2000:

Set newItem = CommandBars("Tools").Controls.Add(Type:=msoControlButton)
With newItem
    .BeginGroup = True
    .Style = msoButtonCaption
    .Caption = "Make &Report"
    .OnAction = "qtrReport"
End With

0

Featured Post

Easily manage email signatures in Office 365

Managing email signatures in Office 365 can be a challenging task if you don't have the right tool. CodeTwo Email Signatures for Office 365 will help you implement a unified email signature look, no matter what email client is used by users. Test it for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Check out the easy way to Export Thunderbird to MS Outlook. It can be done effectively by using manual method and if you are not much into coding then you can definitely try the third party tool for the conversion.
Organisation is organized in a pattern to flow the day to day business, every application and system is interdepended on each other and when very important “Exchange Server downtime” happened.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

599 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question