Private Sub Text1_KeyPress(KeyAscii As Integer)
If (KeyAscii = 65 to 90) Then '48 Or KeyAscii > 57) Then
SendKeys "+({HOME})"
MsgBox "Characters Only."
End If
End Sub
--------------------------------------------------------------------------------
Is this right? I only want letters to be typed in my textbox. if the user typed numbers there will be an error. this code doesn't seem to work. pls help. :rolleyes:
