TooltipText Property

Microsoft Office Object Model

TooltipText Property

       

Returns or sets the text displayed in a command bar control's ScreenTip. Read/write 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.

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