Edit the tooltip for toolbarbuttons (Office97 and later)
2000-02-05 Commandbars 0 151
The examples below uses the New-button on the Standard toolbar as an example. You can replace "Standard" with the name or number of another CommandBar, and the number of the Control you want to edit.
Use this macro to change the tooltip text:
Sub ChangeToolTipsText() Application.CommandBars("Standard").Controls(1).TooltipText = "Test" End SubUse this macro to reset the tooltips text:
Sub ResetToolTipsText() Application.CommandBars("Standard").Controls(1).TooltipText = "" End SubUse this macro if you want to reset all custom settings for a Control:
Sub ResetAllControlSettings() Application.CommandBars("Standard").Controls(1).Reset End SubIf you don't know the name or number for the different CommandBars and their Controls you can use the CommandBar Tools available for download to help you find the names and numbers.