Hi Experts!

I am developing a userform with multiple controls mostly Text Boxes and Combo Boxes etc.
I can set KeyAscii or keycode function for each control to unload userform.
But
It is too lengthy and difficult to set Ascii or keycode function for every control.

I want
Is there any option to set this function shortly?

I shall be very thankful for help.

Thanks
Amir