Famille de feuilles de calcul Microsoft avec des outils pour l’analyse, le graphique et la communication des données.
ou :
With ActiveSheet <br><br> For i = 1 To 20 <br><br> Text = .OLEObjects("CommandButton" & i).Object.Caption <br><br> If Text = dossard Then <br><br> .OLEObjects("CommandButton" & i).Object.Caption = "" <br><br> End If <br><br> Next i <br><br>End With Daniel
Bonjour,
j'ai une erreur "Incompatibilité de type" dans la 1ère proposition sur:
Text = .Shapes("CommandButton" & i).DrawingObject.Object.Caption
et une erreur "Impossible de lire la propriété Oleobject de la classe Worsheet" dans la 2ème:
Text = .OLEObjects("CommandButton" & i).Object.Caption
Cordialement