CommandBars.GetLabelMso Method (Office)

Returns the label of the control identified by the idMso parameter as a String.

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."

Syntax

expression. GetLabelMso( _idMso_ )

expression An expression that returns a CommandBars object.

Parameters

Name Required/Optional Data Type Description
idMso Required String Identifier for the control.

Return Value

String

Example

The following sample returns the String "Paste".

Application.CommandBars.GetLabelMso("Paste")

See also

CommandBars Object

CommandBars Object Members