Edit the tooltip for toolbarbuttons (Office97 and later)

 2000-02-05    Commandbars    0    197

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 Sub
Use this macro to reset the tooltips text:

Sub ResetToolTipsText()
    Application.CommandBars("Standard").Controls(1).TooltipText = ""
End Sub
Use this macro if you want to reset all custom settings for a Control:

Sub ResetAllControlSettings()
    Application.CommandBars("Standard").Controls(1).Reset
End Sub
If 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.