Attaching/creating tool tips to buttons on the Word toolbar?

E

Eric G

XPP SP2
Office 2003 SP2


Hello,

After creating and placing a button on the Word toolbar - with an attached macro - the Tool tips displays the name of the macro, including possible underscores, ie descriptive names without spaces.

How do attach your own customized tool tips to a macro/button function on the Word toolbar? (Once upon a time, I think, I did it, but can't after all these years remember how.)

Best regards,


Eric G
Stockholm, Sweden
 
C

Charles Kenyon

The simplest way is by naming your macro to be the Tool Tip.
Sub CutAndPasteAtEnd()
....
End Sub

The tool tip will end up being Cut And Paste At End.

Otherwise, you can alter the tooltip property of the control in vba (but I
don't remember the language to do this).
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.

XPP SP2
Office 2003 SP2


Hello,

After creating and placing a button on the Word toolbar - with an attached
macro - the Tool tips displays the name of the macro, including possible
underscores, ie descriptive names without spaces.

How do attach your own customized tool tips to a macro/button function on
the Word toolbar? (Once upon a time, I think, I did it, but can't after all
these years remember how.)

Best regards,


Eric G
Stockholm, Sweden
 
E

Eric G

Hello Charles,

Yes, your first suggestion is obviously the easiest way, but I'm leaning
more towards the vba approach, so I'll have to do some further searching and
probably go and buy some books relating to vba.

I really appreciate your help. Thank you.

Best regards,


Eric G
Stockholm, Sweden
 
C

Charles Kenyon

Here is the structure of a couple of procedures that accesses it.

Sub Test()
MsgBox Application.CommandBars("Custom 1").Controls(1).TooltipText
End Sub

Sub Test2()
Application.CommandBars("Custom 1").Controls(1).TooltipText = "New Tip"
End Sub

--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
E

Eric G

Hello Charles,

Well, that looks good and solves my problems just the way I like it - while
being elegant at the same time.

Once again, many thaks for all your help, it's really much appreciated.


Best regards,



Eric G
Stockholm, Sweden (grey and cold!)
 
C

Charles Kenyon

You are welcome. Remember, next time it may be your turn to help. We all
started as beginners and some of us still are!
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top