DescriptionText Property
Applies To
CommandBarButton object, CommandBarComboBox object, CommandBarControl object, CommandBarPopup object.
Description
Returns or sets the description for the specified command bar control. The description is displayed in the status bar of the container application when the user positions the pointer over a command bar control. Read/write String.
Remarks
Not all applications display a status bar. This property is also used for Balloon Help on the Macintosh.
See Also
Caption property, DisplayKeysInTooltips property, DisplayTooltips property.
Example
This example adds a command bar control with a spelling checker button face to a custom command bar. The example also sets the text "Starts the spelling checker" to appear in the status bar whenever the user positions the pointer over the button.
Set myBar = CommandBars.Add("Custom", msoBarTop, , True)
myBar.Visible = True
Set myControl = myBar.Controls.Add(Type:=msoControlButton, Id:=2)
With myControl
.DescriptionText = "Starts the spelling checker"
.Caption = "Spelling checker"
End With