Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Position d'une commande dans un menu

1 réponse
Avatar
thomas
Bonjour,

Comment connaître par VBA Excel 2003 la position d'une commande dans un menu
?

Merci

1 réponse

Avatar
michdenis
Un exemple :

Commande imprimer de la barre d'outils Standard

Sub test()
Dim Nb As Integer, A As Integer
Nb = Application.CommandBars("standard").Controls.Count
For A = 1 To Nb
If Application.CommandBars("standard").Controls(A).Caption = "Imprimer
(Fax)" Then
MsgBox A
End If
Next
End Sub




"thomas" <nomail> a écrit dans le message de news:

Bonjour,

Comment connaître par VBA Excel 2003 la position d'une commande dans un menu
?

Merci