Bonjour Max-57, i20100, le forum,
Une autre proposition à tester....
Private Sub CommandButton2_Click()
Dim ProjectManager As String
Dim password As String, mdp As String
Dim PMligne As Integer
Dim PMcolonne As Integer
Dim tab1 As Range
Set tab1 = Sheets("liste").ListObjects("Manager").DataBodyRange
ProjectManager = Sheets("Sheet1").Range("G5").Value
mdp = Application.WorksheetFunction.VLookup(ProjectManager, tab1, 2, False)
password = TextBox1
If password <> mdp Then
MsgBox "Mot de passe erroné"
TextBox1 = "": TextBox1.SetFocus
Else
MsgBox "Mot de passe OK"
Unload Me
Unload Signatures
End If
End Sub
Cordialement,