This appears to ONLY happen with Windows 10 Enterprise 64-bit.
MS Office 2016 32-bit
The problem is using a Password Char for a textbox. This Windows OS will not read characters in a masked textbox. Is there a way around that?
If I remove the character mask then the textbox works fine. But with a character mask Win 10 Ent sees only that character (*) and rejects the password.
The code works fine on my Win 10 at home, and other Win 7 boxes at work..... it's only the newly upgraded Win 10 Ent boxes at work that have this issue.
MS Office 2016 32-bit
The problem is using a Password Char for a textbox. This Windows OS will not read characters in a masked textbox. Is there a way around that?
If I remove the character mask then the textbox works fine. But with a character mask Win 10 Ent sees only that character (*) and rejects the password.
The code works fine on my Win 10 at home, and other Win 7 boxes at work..... it's only the newly upgraded Win 10 Ent boxes at work that have this issue.
Code:
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
End Sub