atw: Word 2003 tip: Change tooltip for a custom toolbar button

Just a follow-up to my question about creating a custom toolbar to
insert predefined AutoText entries:

My custom toolbar now has five buttons=2E Each one has a text label (no
icon) and inserts an autotext entry=2E It looks like this:

 [grid layoutpanel shortcutmenu toolbar|notes]

Word assigns a default tooltip which is the same as the label=2E That
is, the tooltip for the layoutpanel button is 'layoutpanel'--not so
helpful=2E It's easier to keep the labels short if the tooltips can be
made more informative=2E

You can't change the default tooltip through the Word menus but it
can be done with a short macro=2E

1=2E Open the template where the toolbar is stored=2E
2=2E Tools > Macros > Visual Basic Editor
3=2E Paste in the following text:

   Sub ChangeToolTip()
     =20
     With CommandBars("My=5FToolbar")                        ' The
toolbar (command bar)=2E
         With =2EControls("My=5FButton")                       ' The
custom control=2E
            =2ETooltipText =3D "Insert subheading and table to specify an=

additional layout panel"
         End With
      End With

   End Sub

4=2E Change the bits inside the double-quotes to the name of your
toolbar and button and the tooltip you want=2E
5=2E Press F5 to run the macro=2E

Stuart

**************************************************
To view the austechwriter archives, go to 
www.freelists.org/archives/austechwriter

To unsubscribe, send a message to austechwriter-request@xxxxxxxxxxxxx with 
"unsubscribe" in the Subject field (without quotes).

To manage your subscription (e.g., set and unset DIGEST and VACATION modes) go 
to www.freelists.org/list/austechwriter

To contact the list administrator, send a message to 
austechwriter-admins@xxxxxxxxxxxxx
**************************************************

Other related posts: