text appears as stars

G

Guest

Guest
I am doing an ICT project and wish to use a password function on the opening page, to allow diffrent users to enter. And For this I want to make the text appear as stars, and I have tried but i cannot do this. Any help would be greatly appreciated.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
One way would be to use a textbox on a userform for password entry. Right-click on the textbox, select Properties and change the PasswordChar property of the textbox to an *.
 
Upvote 0
thanks,

if I used this method is thn possible for it to detect a specific usrname and password, and then reject this user if the password or username is incorrect. I have a database where I have the username and passwords of users who have "joined" and then I have aslo made a code for this, with the 3 left letters of each the username and password and then used the concanetate to make them into a 6 lettered code. Dont know if this is the proper way to go around it, but thats what i've done so far.
thanks alot craig
 
Upvote 0
Try some code like this to check the password. It gives them 3 tries and then closes. If they get it correct the chosen Procedure is run:

Private Sub CommandButton1_Click()
Dim strPass As String

strPass = TextBox1.Text

Do Until iTries = 3
If strPass = "Secret" Then
MsgBox "Log in OK!"
Run "LogInOk"
End
End If
MsgBox "Log in NOT OK!"
iTries = iTries + 1
Exit Do
Loop

If iTries = 3 Then Unload Me

End Sub
 
Upvote 0

Forum statistics

Threads
1,214,383
Messages
6,119,196
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top