Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

convert typed password to "*" 2

Status
Not open for further replies.

chilly442

Technical User
Jun 25, 2008
151
US
Users must enter a password to get to an entry form. Is there a way to convert the typed text into "*"? The way it is now, someone could see the typed password.

Here is the code that I am using to prompt for the password:
Private Sub cmdFrontRangeData_Click()
Dim password As String
ReturnUserName
password = InputBox("Enter Password " & vbNewLine & vbNewLine & " " & ReturnUserName())
If password <> "123" Then
GoTo last
Else
Sheets("Data").Activate
SelectionScreen.Show
End If
last:
Sheets("Report").Activate
Unload Me
End Sub
Any help will get you a star!!

Chilly442
 




Check out the password property of the textbox object.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 





Actually, it's the PasswordChar property.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Usse a TextBox with its PasswordChar property set to "*".

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks guys. I knew that I had seen how to do this somewhere, just wasn't sure where.

Chilly442
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top