Hello,
I have a Userform textbox that I set for password entry, I was hoping to let the user input any password that is... numeric only or, letters only or alphanumeric. Any suggestion is very much appreciated.
Thank you
Hello,
I have a Userform textbox that I set for password entry, I was hoping to let the user input any password that is... numeric only or, letters only or alphanumeric. Any suggestion is very much appreciated.
Thank you
Hi Hudas,
Try this code
Sub PasswordButton_Click()
' This is a code to let supervisor access reporting
UserName = InputBox("Enter password to acces data and Report")
If UserName <> "ste" Then GoTo WrongPassword
MsgBox " Welcome Hematology Supervisor"
ReportForm.Show
MainForm.Hide
Exit Sub
WrongPassword:
MsgBox "Please re-enter password"
End Sub
flexel, your code does not involve a userform & needs code tags adding to it.
Hudas, a user can type anything into a textbox unless you add code to force say numeric entries only
Hope that helps.
RoyUK
--------
For Excel Tips & Solutions, free examples and tutorials why not check out my web site
Free DataBaseForm example
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks