Các ví dụ bên dưới sử dụng nút Mới trên thanh công cụ Chuẩn làm ví dụ.

Bạn có thể thay thế “Standard” bằng tên hoặc số của CommandBar khác và số của Control mà bạn muốn chỉnh sửa. Sử dụng macro này để thay đổi văn bản chú giải công cụ:

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