Macro Modifier texte d'un bouton selon son état
Fermé
Yayadu68
-
16 janv. 2015 à 14:06
f894009 Messages postés 16904 Date d'inscription dimanche 25 novembre 2007 Statut Membre Dernière intervention 18 mars 2023 - 16 janv. 2015 à 15:03
f894009 Messages postés 16904 Date d'inscription dimanche 25 novembre 2007 Statut Membre Dernière intervention 18 mars 2023 - 16 janv. 2015 à 15:03
A voir également:
- Macro Modifier texte d'un bouton selon son état
- Dans le texte, un seul mot a réellement été écrit en lettres capitales (majuscules). quel est ce mot ? ✓ - Forum Word
- Bouton on off ✓ - Forum Loisirs / Divertissements
- Modifier pdf - Guide
- Macro logiciel - Télécharger - Organisation
- Modifier liste déroulante excel - Guide
1 réponse
f894009
Messages postés
16904
Date d'inscription
dimanche 25 novembre 2007
Statut
Membre
Dernière intervention
18 mars 2023
1 678
16 janv. 2015 à 15:03
16 janv. 2015 à 15:03
Bonjour,
Sub bouton()
Dim Obj As Object
'adaptez le nom du bouton
Set Obj = ActiveSheet.Shapes("Bouton 1").OLEFormat.Object
With Range("4:5")
If .EntireRow.Hidden = False Then
.EntireRow.Hidden = True
Obj.Text = "+"
Else
.EntireRow.Hidden = False
Obj.Text = "-"
End If
End With
End Sub