The following code worked fine until some of the computers were upgraded to Windows 10 from Windows 7.
The upgraded computers work fine except for this code. The textbox appears and the correct password is entered... then they get "The password was wrong, try again." WHY!!!!!???? I do not understand!! Someone? Anyone?
Is there a better way to write this? Obviously the goal is a password textbox that will accept the correct password like it used to do. TIA!
The upgraded computers work fine except for this code. The textbox appears and the correct password is entered... then they get "The password was wrong, try again." WHY!!!!!???? I do not understand!! Someone? Anyone?
Is there a better way to write this? Obviously the goal is a password textbox that will accept the correct password like it used to do. TIA!
Code:
[COLOR=#333333]Private Sub UserForm_Activate() With UserForm13[/COLOR] .Top = Application.Top + 275
.Left = Application.Left + 200
End With
End Sub
Private Sub CommandButton1_Click()
Dim strPass As String
strPass = "nakosi"
If TextBox1.Value = strPass Then
Call UnprotectAllSheets
Unload Me
Else
If MsgBox("The password was wrong, try again", vbYesNo) = vbNo Then
Unload Me
Else
TextBox1.Value = ""
TextBox1.SetFocus
End If
End If [COLOR=#333333]End Sub[/COLOR]