Ivan F Moala
MrExcel MVP
- Joined
- Feb 10, 2002
- Messages
- 4,209
<pre/>On 2002-04-19 00:05, TsTom wrote:
Is there a userform property to set?
I placed a breakpoint in each event.
Is there a property similiar to "KeyPreview" in VB for VBA userforms?
They are not being fired.
My goal is simple. Close the userform with the Enter key...
Thanks,
Tom
This message was edited by TsTom on 2002-04-19 00:11
Private Sub UserForm_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 13 Then Unload Me
End Sub</pre>