Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ramit,
In addition to Joel's response, you can set the CommanButton's Default property: '=========== Private Sub UserForm_Initialize() Me.CommandButton1.Default = True End Sub '<<========== Then, hittting the Enter key will call the Command_Button code. Typically, you might set the default property for a Cancel button on your form. --- Regards. Norman "Ranjit kurian" wrote in message ... I have developed a forms through excel VBA, and the forms contain text box, option button, commandbutton etc.... I need a macro code to create shortcut key to my commandbutton and optionalbutton, for example : if i have a commandbutton called as Cancel, the "C" of the Cancel button should be underlined, so that the user when they select Alt+C that particular commandbutton should be activated/action to be performed. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
shortcut has change or move so this shortcut can not open | Excel Worksheet Functions | |||
commandbutton? | Excel Programming | |||
Macro Shortcut Key Conflicts with Application Shortcut Keys | Excel Programming | |||
Macro Shortcut Key Conflicts with Application Shortcut Keys | Excel Programming | |||
CommandButton | Excel Programming |