Staple1600
XLDnaute Barbatruc
Bonjour à tous
Voila le problème:
Affecter une valeur différente à CommandButton
selon clic
1clic=1, 2clic=2, 3clic=3 enusite on revient à 1 et ainsi de suite
Voila ou j'en suis
Private Sub CommandButton1_Click()
z = CommandButton1.Caption
Select Case z
Case 1
CommandButton1.Caption = 2
Case 2
CommandButton1.Caption = 3
Case 3
CommandButton1.Caption = 1
End Select
End Sub
Private Sub UserForm_Initialize()
CommandButton1.Caption = 1
End Sub
Ca ne fonctionne pas
Voila le problème:
Affecter une valeur différente à CommandButton
selon clic
1clic=1, 2clic=2, 3clic=3 enusite on revient à 1 et ainsi de suite
Voila ou j'en suis
Private Sub CommandButton1_Click()
z = CommandButton1.Caption
Select Case z
Case 1
CommandButton1.Caption = 2
Case 2
CommandButton1.Caption = 3
Case 3
CommandButton1.Caption = 1
End Select
End Sub
Private Sub UserForm_Initialize()
CommandButton1.Caption = 1
End Sub
Ca ne fonctionne pas