Cacher un ComandButton

Bonjour à tous,

Dans mon fichier, je voudrais cacher le bouton "AFFICHE LES ONGLETS" si le bouton"CACHER LES ONGLETS" est actif.

Pourriez-vous à nouveau m'aider?

Merci par avance

Bonjour

A mettre dans ton userform

A+

Maurice

Private Sub UserForm_Initialize()
    If ActiveWindow.DisplayWorkbookTabs = False Then
        CommandButton1.Visible = True
        CommandButton2.Visible = False
      Else
        CommandButton1.Visible = False
        CommandButton2.Visible = True
    End If
End Sub

Bonjour Archer,

Super exactement ce que je cherchais. Un grand merci à vous

Bonjour

merci a toi aussi

A+

Maurice

Rechercher des sujets similaires à "cacher comandbutton"