Bonjour à tous,
Je cherche à savoir si une commande de ma barre d'outils (du ruban en fait) est enfoncé.
Quelle propriété peux me donner cette information ?
Merci pour votre aide
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 For Each ctl In Application.CommandBars("Standard").Controls If ctl.Caption = "&Format Painter" Or ctl.Caption = "Reproduire la mise en &forme" Then If ctl.enabled = True Then ' => Mon problème est ici MsgBox "je suis enfoncé" Else MsgBox "je ne suis PAS enfoncé" End If End If Next![]()
Partager