Skip to main content

CommandBars.GetEnabledMso method

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

Syntax

expression.GetEnabledMso (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 enabled.

Application.CommandBars.GetEnabledMso("Bold")

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>