Share via


CommandBars.GetVisibleMso Method

Office Developer Reference
Aa434609.vs_note(en-us,office.12).gif  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."

Returns True if the control identified by the idMso parameter is visible.

Syntax

expression.GetVisibleMso(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
Boolean

Example

The following sample returns True if the Bold button is visible.

Visual Basic for Applications
  Application.CommandBars.GetVisibleMso("Bold")

See Also