Private Sub CommandButton1_Click()
On Error Resume Next
'Définition des variables
Dim MdP As String
'Configuration des variables
MdP = WorksheetFunction.VLookup(Text_User, Sheets("User").Range("A:C"), 2, 0)
'Si la recherche V de la configuration est correct
If Text_Mdp = MdP Then
MENUGeneral.Show
MENUGeneral.LabelUser.Caption = Me.Text_User.Text
Unload Me
'Si la recherche V ne correcpond pas
Else
MsgBox "erreur"
End If
End Sub