Private Sub UserForm_Activate()
UserPWD = Space$(16) & "Accès protégé par Mot de Passe"
Dim chn$, i As Boolean
i = (&H1 And GetKeyState(vbKeyCapital)) <> 0
TextBox2.Visible = i: TextBox3.Visible = Not i
chn = IIf(i, TextBox2.Name, TextBox3.Name)
Clignoterpwd 8, chn: TextBox1.SetFocus
End Sub