0

I have the bellow code to enter a password in order to open Excel worksheets, I want to hide the password i'm typing by showing only stars: ****. What should I add to my code? Thnk you

Private Sub bdd_Click()
    mdp = InputBox("Entrer le mot de pase de consultation : ", "Accés ficher FA")
    If mdp = ThisWorkbook.Worksheets("config").Range("E2").Value Then
    Unload Me
    ThisWorkbook.Application.Visible = True
    End If
End Sub
BigBen
  • 46,229
  • 7
  • 24
  • 40
FaruSZ
  • 61
  • 7

0 Answers0