Поделиться через


CommandBars.GetPressedMso Method (Office)

Returns a value indicating whether the toggleButton control identified by the idMso parameter is pressed.

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 .GetPressedMso(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 when the Bold button is pressed.

Application.CommandBars.GetPressedMso(“Bold”) 

See Also

Concepts

CommandBars Object

CommandBars Object Members