Hey.
I'm trying to detect a carrage return when somone is typing in a textbox and have it automatically call a procedure. Here is what I have so far:
Private Sub txtSwipeCard_KeyPress(KeyAscii As MSForms.ReturnInteger)
If KeyAscii = "13" Then
call whatever()
Me.Hide
End If
End Sub
Does not seem to work! any ideas? thanks
I'm trying to detect a carrage return when somone is typing in a textbox and have it automatically call a procedure. Here is what I have so far:
Private Sub txtSwipeCard_KeyPress(KeyAscii As MSForms.ReturnInteger)
If KeyAscii = "13" Then
call whatever()
Me.Hide
End If
End Sub
Does not seem to work! any ideas? thanks