Bonjour,
J'ai un problème avec ma fonction commande voila j'ai déclaré plusieurs variable au départ mais lorsque je fait mon bouton commande tout marche tres bien il s agit d'un userform mais lorsque je clique sur le bouton commande de mon formulaire celui_ci dit que mon bloc with n'est pas défini ( Merci beaucoup de bien vouloir m 'aider
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 Private Sub CommandButton1_Click() With OptionButton1.Value = True If Reponse1 = Worksheets("Feuil1").Cells(lg, 2) Then point = 1 End With With OptionButton2.Value = True If Reponse2 = Worksheets("Feuil1").Cells(lg, 2) Then point = 1 End With With OptionButton3.Value = True If Reponse3 = Worksheets("Feuil1").Cells(lg, 2) Then point = 1 End With End Sub
Partager