zefirstfan
XLDnaute Junior
Bonjour,
Le code ci dessous fonctionne très bien mais je pense qu'il est possible de le simplifier (boucle???)
Les Option button sont dans le même frame.
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then
Label1 = "1"
End If
End Sub
Private Sub OptionButton2_Click()
If OptionButton2 = True Then
Label1 = "2"
End If
End Sub
Private Sub OptionButton3_Click()
If OptionButton3 = True Then
Label1 = "3"
End If
End Sub
J'ai essayé avec des ElseIf mais ça plante.
Une piste?
Merci d'avance.
Le code ci dessous fonctionne très bien mais je pense qu'il est possible de le simplifier (boucle???)
Les Option button sont dans le même frame.
Private Sub OptionButton1_Click()
If OptionButton1.Value = True Then
Label1 = "1"
End If
End Sub
Private Sub OptionButton2_Click()
If OptionButton2 = True Then
Label1 = "2"
End If
End Sub
Private Sub OptionButton3_Click()
If OptionButton3 = True Then
Label1 = "3"
End If
End Sub
J'ai essayé avec des ElseIf mais ça plante.
Une piste?
Merci d'avance.