mariobross
XLDnaute Occasionnel
bonsoir le forum, je voudrai réaliser en boucle une opération sur des commandbutton :
Private Sub UserForm_Initialize()
With UserForm4.CommandButton1
.Caption = Feuil5.RANGE("B100").Value
End With
With UserForm4.CommandButton2
.Caption = Feuil5.RANGE("B101").Value
End Withbutton :
'a faire du commandbutton 1 AU 90
'et de la cellule b100 à B190
pour l'instant j'ai écris tout le code mais c'est long , quelqu'un aurai au moins une piste ? merci.
Private Sub UserForm_Initialize()
With UserForm4.CommandButton1
.Caption = Feuil5.RANGE("B100").Value
End With
With UserForm4.CommandButton2
.Caption = Feuil5.RANGE("B101").Value
End Withbutton :
'a faire du commandbutton 1 AU 90
'et de la cellule b100 à B190
pour l'instant j'ai écris tout le code mais c'est long , quelqu'un aurai au moins une piste ? merci.