If you're bound and determined to have this functionality, ditch the msgbox and create a custom form with yes & no buttons (which can be unloaded when you capture the keystroke).
All I ask is a chance to prove that money can't make me happy.
If you do create your custom form, just set the Cancel property of the NO command button to True. If you do that ESC activates the button code
___________________________________________________________
If you want the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?' Drive a Steam Roller Steam Engine Prints
Since MicroSoft couldn't be convinced ; ) ...
We went with the user just pressing Enter or "N" - I set the MsgBox to default to the No button when presented.
One point to make in favor of not deviating from Microsoft's standard UI behaviors is that you increase productivity. The reason for this is that a new hire will be able to leverage past experience to come up to speed rather than having to learn the idiosyncracies of your particular UI. This translates into money, and people are generally quick to set aside their ideas when you explain that they cost money.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.