Thread: keyascii = 13
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ermeko ermeko is offline
external usenet poster
 
Posts: 28
Default keyascii = 13

Hi,

Private Sub TextBox1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 13 Then
msgbox 123
End If
End Sub

When I press ENTER button there is no msgbox.
How can I make this code work?

Thanks,