I have a vba code for input a password to open a sheet in a workbook.
If Intersect(Target, Range("C21")) Is Nothing Then
Else
Dim Wachtwoord As String
Wachtwoord = InputBox("Geef het wachtwoord op")
If Wachtwoord = "peflex" Then
Sheets("Matrix").Select
ActiveSheet.Range("A1").Select
Else
MsgBox ("U heeft geen toegang")
Sheets("Menu").Select
ActiveSheet.Range("A1").Select
End If
End If
With which code is it possible that you don't see the password but only ****
I run into this a lot and I use the same code as a workaround every time. The earliest reference I can find online is from ozgrid.com where the mention Daniel Klann as the writer.
Create a new module in your vbaproject and drop this code in:
Then instead of
Use:
You may have to save and restart excel after creating that new module. I generally name the module
m_password
and export it as a .bas file so I can reuse it. It's super handy.