Bonjour,
J'ai 5 checkbox et je souhaiterai lancer différentes macros si les checkbox correspondantes sont cochées!
J'ai regardé le tuto de silkyRoad sur ce site mais j'ai quand même:calim2:Citation:
l'erreur 424 objet requis
lorsque j'exécute le code suivant:
A noter que j'ai aussi dans la feuille où se trouvent les différentes checkbox les codes suivants qui je pense est inutile :mrgreen:Code:
1
2
3
4
5
6
7
8
9
10 Application.Run "Report.xls!Feuil4.CheckBox1_Click" If CheckBox1.Value = True Then Application.Run "Report.xls!ImportData.ImportData" End If Application.Run "Report.xls!Feuil4.CheckBox2_Click" If CheckBox2.Caption = True Then Application.Run "Report.xls!GetNumber" Application.Run "Report.xls!GetDate" End If
Quelqu'un pourrait me filer un coup de main?Code:
1
2
3
4
5
6
7
8 Sub CheckBox1_Click() Select Case CheckBox1.Value Case True: CheckBox1.Value = "Vrai" Case False: CheckBox1.Value = "Faux" End Select End Sub
Merci d'avance! :ccool: