Some help again, on same thing

Craig AS

New Member
Joined
Mar 6, 2002
Messages
26
Im still working on the password entry thing.Dim strPass As String
Dim iTries As Integer
Private Sub CommandButton1_Click()

strPass = TextBox1.Text

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

End Sub

Is it possible to use a number of diffrent passwords, rather than a signgle set password??? I'll work on it, untill any sugestions, thanx alot

Craig
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Instead of an If, use a Select:

Select Case LoginID
Case "pass1", "pass2", "pass3"
Msgbox "Login OK"
Case
Msgbox "Not OK"
End Select
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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