Hi all!
Please assist me in solving this problem.
I just want the textbox to check upon exit event if the value entered is alphanumeric.
I have a code that checks every keypress if user enters non-alphanumeric characters. But again, I also want it to make sure that user entered alphanumeric characters coz this textbox is for user password.
Thanks!
Here's my code:
Private Sub Textbox2_KeyPress (ByVal KeyAscii As MSForms.ReturnInteger) If Textbox2.Name <> "textbox2" Then Select Case KeyAscii Case 46, 48 to 57, 65 to 122 Case Else KeyAscii = 0 Msgbox "Please enter alphanumeric characters only." End Select End If
Bookmarks