Skip to main content

CommandBars.DisplayKeysInTooltips property

Table of contents
  1. Syntax
  2. Remarks
  3. Example

Is True if shortcut keys are displayed in the ToolTips for each command bar control. Read/write.

Syntax

expression.DisplayKeysInTooltips

expression A variable that represents a CommandBars object.

Remarks

To display shortcut keys in ToolTips, you must also set the DisplayTooltips property to True.

Example

This example sets options for all command bars in Microsoft Office.

With CommandBars
    .LargeButtons = True
    .DisplayTooltips = True
    .DisplayKeysInTooltips = True
    .MenuAnimationStyle = msoMenuAnimationUnfold
End With

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>