Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accelerator Keys

Status
Not open for further replies.

VBAva

Programmer
Jul 29, 2003
87
IE
hello

i know this is probably a simple question but i cant seen to find the answer :-(

i have user forms and a custom menu bar and i would like to have accelerator keys or shortcut keys for the buttons, but i cant figure out how to do it.
i cant find it in the excel help either.

thanks for your time
Ava:)
 
oops, i always post questons and figure out the answer soon after!

it is very easy to get the accelerator keys in for a menu item
eg
(this is just and excerpt so it wont work on its own)

Set ctlPopUpFile = EditBar.Controls.Add(msoControlPopup)
With ctlPopUpFile
.Caption = "&Open File"
.BeginGroup = False
.Enabled = True
End With


This creates a button on a custom menu bar called Open File, with O as the accelerator key
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top