CommandBar.NameLocal Property
Gets 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.
Note
|
|---|
| The use of CommandBars in some Microsoft Office applications has been superseded by the new Ribbon user interface. For more information, search help for the keyword "Ribbon." |
Syntax
expression.NameLocal
expression A variable that represents a CommandBar object.
Remarks
Note
|
|---|
| If you attempt to set this property for a built-in command bar, an error occurs. |
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.
Example
This example displays the name and localized name of the first command bar in the container application.
| Visual Basic for Applications |
|---|
|
Note