J
JJ
When I was coding in VB5 (I think), all I had to do to "assign" a
keystroke to a command button was to put an "&" before the letter in
the caption of the button. The user could then press Alt and that
letter to "press" that button without using a mouse.
For instance, if it was an "OK" button and the caption was "&OK", then
the user could press Alt+O to press the OK button. The "&" would not
be visible but the "O" would be underlined to indicate there was a
keyboard shortcut.
Is there a way to do this in VBA?
Thanks!
JJ
keystroke to a command button was to put an "&" before the letter in
the caption of the button. The user could then press Alt and that
letter to "press" that button without using a mouse.
For instance, if it was an "OK" button and the caption was "&OK", then
the user could press Alt+O to press the OK button. The "&" would not
be visible but the "O" would be underlined to indicate there was a
keyboard shortcut.
Is there a way to do this in VBA?
Thanks!
JJ