NameLocal Property Example

This example displays the name and localized name of the first command bar in the container application.

With CommandBars(1)
    MsgBox "The name of the command bar is " & .Name
    MsgBox "The localized name of the command bar is " & .NameLocal
End With