ribsa3
Programmer
- Jun 17, 2003
- 56
Hi
I would like to enable the use of shortcut keys in a userform - typically being alt-o for ok and escape for cancel. I cannot seem to find these properties as default, so I am wondering if I can employ the OnKey method in any way or if there are even simpler solutions.
I am using a third party button control so I cannot define buttons as ok or cancel buttons, so it would have to be that pressing alt-o or escape triggered a subroutine to perform the desired tasks.
Kindly,
Bjoern Sandvik
--------------------------------------------------------------------
Do what you wish, as long as it harms no one. That includes yourself.
I would like to enable the use of shortcut keys in a userform - typically being alt-o for ok and escape for cancel. I cannot seem to find these properties as default, so I am wondering if I can employ the OnKey method in any way or if there are even simpler solutions.
I am using a third party button control so I cannot define buttons as ok or cancel buttons, so it would have to be that pressing alt-o or escape triggered a subroutine to perform the desired tasks.
Kindly,
Bjoern Sandvik
--------------------------------------------------------------------
Do what you wish, as long as it harms no one. That includes yourself.