NameLocal Property
Applies To
CommandBar object.
Description
Returns the name of a built-in command bar as it's displayed in the language version of the container application, or returns or sets the name of a custom command bar. Read/write String.
Note If you attempt to set this property for a built-in command bar, an error occurs.
Remarks
The local name of a built-in command bar is displayed in the title bar (when the command bar isn't docked) and in the list of available command bars, wherever that list is displayed in the container application.
If you change the value of the LocalName property for a custom command bar, the value of Name changes as well, and vice versa.
See Also
Name 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