|
-
Feb 9th, 2003, 10:43 PM
#1
Thread Starter
New Member
Help!
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|