Table of contents
Collapse the table of content
Expand the table of content

CommandBar.NameLocal Property (Office)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

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 component of the Microsoft Office Fluent user interface. For more information, search Help for the keyword "ribbon."


expression. NameLocal

expression A variable that represents a CommandBar object.


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.


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

See also


CommandBar Object

Other resources

CommandBar Object Members

© 2018 Microsoft