TooltipText Property
Applies To
CommandBarButton object, CommandBarComboBox object, CommandBarControl object, CommandBarPopup object.
Description
Returns or sets the text displayed in the specified command bar control's ScreenTip. Read/write String.
Remarks
By default, the value of the Caption property is used as the ScreenTip.
See Also
Caption property, DescriptionText property.
Specifics (Microsoft Access)
In Microsoft Access 97, you can use the Toolbar Control Properties dialog box for command bar controls to set the ToolTip (ScreenTip) for a control on a command bar. Display the Customize dialog box by pointing to Toolbars on the View menu and clicking Customize. For menu bar and toolbar controls, display the menu bar or toolbar, and then right-click the control whose TooltipText property you want to set. For shortcut menu controls, select the Shortcut Menus check box on the Toolbars tab of the Customize dialog box, then find the shortcut menu control you want on the menu bar that's displayed and right-click the control. Click the Properties command. Enter the text you want in the ToolTip box.
Example
This example sets the last control on the active menu bar to begin its own group, and then adds a ScreenTip to it.
Set myMenuBar = CommandBars.ActiveMenuBar
Set lastCtrl = myMenuBar.Controls(myMenuBar.Controls.Count)
lastCtrl.BeginGroup = True
lastCtrl.TooltipText = "Click for help on UI feature"
End With