Mega Code Archive

 
Categories / VisualBasic Script / Application
 

Listing the controls on a command bar

Sub ShowControlCaptions()     Dim myCommandBar As commandBar     Set myCommandBar = CommandBars("Standard")     For Each ctl In myCommandBar.Controls         Debug.Print ctl.Caption     Next ctl