Article ID: 126895
Article Last Modified on 10/11/2006
'----------------------------------------------------------------
Sub ChangeTooltips()
Set mytoolbar = Toolbars("standard")
For Each mytool In mytoolbar.ToolbarButtons
Message = "Enter a new ToolTip name" ' Set prompt.
Title = "ToolTip changer" ' Set title.
Default = mytool.Name ' Set default.
' If tool is not a gap, display input box.
If Not mytool.IsGap Then
MyValue = InputBox(Message, Title, Default)
' Change ToolTip name,
mytool.Name = MyValue
End If
Next
End Sub
'---------------------------------------------------------------
NOTE: This macro will allow you to change the ToolTip for each button on a
toolbar. If you do not want to change the ToolTip for a particular button,
click Cancel.
'---------------------------------------------------------------
Sub ChangeSingleTooltip()
Toolbars("name of toolbar").ToolbarButtons("index number of button in
toolbar").Name = "it's changed"
End Sub
'---------------------------------------------------------------112632 XL: Setting Status Bar Text and ToolTips for Toolbar Buttons
Additional query words: tool tip XL
Keywords: kbcode kbhowto kbinterop kbprogramming KB126895