Florent
Mechanical
- Feb 18, 2007
- 32
Hi ;
All is in the title.
On a macro with one UserForm, I want to catch some keyboard events.
EG : Escape key to end the macro.
I tried to use "Private Sub UserForm_KeyPress( ByVal KeyANSI As MSForms.ReturnInteger)" but unfortunatly, it doesn't work.
I copy/paste my sub on an excel macro, and it perfectly works.
I would like to avoid to listen keyboard events on each controls ...
Thanks for your tips.
SW2007 SP5
Worksatation HP wx4300 2GB
NVidia Quadro FX 3450
All is in the title.
On a macro with one UserForm, I want to catch some keyboard events.
EG : Escape key to end the macro.
I tried to use "Private Sub UserForm_KeyPress( ByVal KeyANSI As MSForms.ReturnInteger)" but unfortunatly, it doesn't work.
I copy/paste my sub on an excel macro, and it perfectly works.
I would like to avoid to listen keyboard events on each controls ...
Thanks for your tips.
SW2007 SP5
Worksatation HP wx4300 2GB
NVidia Quadro FX 3450