Mega Code Archive
Categories
/
VisualBasic Script
/
Application
Rather than use an index number to refer to a control, you can use its Caption property setting
Sub Test2() MsgBox CommandBars("Standard").Controls("New").Caption End Sub