[RESOLU] bouton pour afficher/cacher onglets toto, titi
Bonjour
je cherche le code VBA afficher/cacher onglets "toto", "titi", "tata"
j'arrive pas à trouver la bonne syntaxe pour les onglets en fait.
Est-ce qu'une âme charitable autait la solution?
merci d'avance
Bonjour
je cherche le code VBA afficher/cacher onglets "toto", "titi", "tata"
Private Sub ToggleButton1_Click()
If Sheets(Array("toto", "tata", "titi Be")).visible = True Then
Sheets(Array("toto", "tata", "titi Be")).visible = False
ToggleButton1.Caption = "Masquer"
Exit Sub
End If
Sheets(Array("toto", "tata", "titi Be")).visible = True
ToggleButton1.Caption = "Afficher"
End Sub
j'arrive pas à trouver la bonne syntaxe pour les onglets en fait.
Est-ce qu'une âme charitable autait la solution?
merci d'avance
Dernière édition: