Gets or sets the text displayed in a CommandBarControl'sScreenTip. Read/write.

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

Syntax

expression.TooltipText

expression A variable that represents a CommandBarControl object.

Return Value
String

Remarks

By default, the value of the Caption property is used as the ScreenTip.

Example

This example adds a ScreenTip to the last control on the active menu bar.

Visual Basic for Applications
Set myMenuBar = CommandBars.ActiveMenuBar Set lastCtrl = myMenuBar _ .Controls(myMenuBar.Controls.Count) lastCtrl.BeginGroup = True lastCtrl.TooltipText = "Click for help on UI feature"

See also: