[vb excel]Déclencher evenement en fonction choix combobox
Bonjour,
Je voudrais savoir comment faire pour afficher des checkbox en fonction d'un choix dans une combobox.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
If Userform1.month_box.Value <> "Tous" Then
Userform1.Semaine1.Visible = True
Userform1.Semaine1.Caption = "Semaine 1"
Userform1.Semaine2.Visible = True
Userform1.Semaine2.Caption = "Semaine 2"
Userform1.Semaine3.Visible = True
Userform1.Semaine3.Caption = "Semaine 3"
Userform1.Semaine4.Visible = True
Userform1.Semaine4.Caption = "Semaine 4"
Userform1.Semaine5.Visible = True
Userform1.Semaine5.Caption = "Semaine 5"
Userform1.Semaine6.Visible = True
Userform1.Semaine6.Caption = "Semaine 6"
End If |
y a t il quelque chose a faire pour déclencher ce code??[/quote]