Private Sub CommandButton1_Click()
Dim i%, sh, MotPasse()
' Structure array : NomFeuille, Mot de passe associé
MotPasse = Array("sophie", "abcd", "pierre", "azerty", "jacques", "pol", "nicole", "treza")
For i = 0 To UBound(MotPasse) Step 2
If MDP.TextBox1 = MotPasse(i + 1) Then
Sheets(MotPasse(i)).Visible = True
Sheets(MotPasse(i)).Select
End If
Next i
If MDP.TextBox1 = "JPh2309" Then
For Each sh In Worksheets
sh.Visible = True
Next sh
End If
Unload MDP
End Sub