Bonsoir Ghassen, le Forum,
Si tu veux deux états pour ton CommandButton21 il faut d'abord mettre ton UserForm1 ShowModal à False dans ces propriétés.
Puis le code suivant:
Code:
Private Sub CommandButton21_Click()
If UserForm1.Visible = False Then
UserForm1.Show
Exit Sub
End If
If UserForm1.Visible = True Then
Unload UserForm1
End If
End Sub
Bonsoir Ghassen, le Forum,
Si tu veux deux états pour ton CommandButton21 il faut d'abord mettre ton UserForm1 ShowModal à False dans ces propriétés.
Puis le code suivant:
Code:
Private Sub CommandButton21_Click()
If UserForm1.Visible = False Then
UserForm1.Show
Exit Sub
End If
If UserForm1.Visible = True Then
Unload UserForm1
End If
End Sub