I have a template in my Word Startup folder. Everything works fine but one of the button's tooltip was the macro module's name. Microsoft KB indicates that one can only change the tooltip by using some VBA code as follows:
Sub ChangeToolTip()
With CommandBars("Standard") ' The toolbar (command bar).
With .Controls("My Custom Button") ' The custom control.
.TooltipText = "My Custom Tip" ' The ToolTip
End With
End With
End Sub
I incorporate this code into the template and it does change the tooltip from the module's name to my description. However, now when I exit Word I'm prompted to save the template. Saving does not prevent the "prompt" from coming up on the next instance I load Word.
Can someone tell me what else needs to be done. This wasn't happening before I incorporated the code!
Iris
Sub ChangeToolTip()
With CommandBars("Standard") ' The toolbar (command bar).
With .Controls("My Custom Button") ' The custom control.
.TooltipText = "My Custom Tip" ' The ToolTip
End With
End With
End Sub
I incorporate this code into the template and it does change the tooltip from the module's name to my description. However, now when I exit Word I'm prompted to save the template. Saving does not prevent the "prompt" from coming up on the next instance I load Word.
Can someone tell me what else needs to be done. This wasn't happening before I incorporated the code!
Iris