Private Sub MdP_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode > 64 And KeyCode < 91 Then
passe = passe & Chr(KeyCode)
Me.MdP.Value = WorksheetFunction.Rept("*", Len(passe) - 1)
'Si la TextBox contient 7 caractères alors tabuler vers USER
If KeyCode = 7 Then
Me.USER.Activate
Else
Me.MdP.Value = WorksheetFunction.Rept("*", Len(passe))
passe = ""
Me.MdP.Value = ""
Me.MdP.Activate
End If
End If
End Sub