add tooltip to commandbar button

R

red6000

Hi,

if I add a macro to a toolbar, the tooltip is the name of the sub.

I can change the tooltip by adding the following code to the autoexec, but
surely there is a way to set the tooltips without resorting to VBA?

CommandBars("ALFI").Controls("Launch ALFI").TooltipText = "Launch the ALFI
system, your friend to help you produce Letters"

Can I change the tooltip without VBA???

Thanks.
 
J

Jay Freedman

Display the Tools > Customize dialog. Then right-click on the button
and change the content of the Name box in the resulting menu. That
will become the new tooltip. If you save the template, it will be
permanent, no need to run any AutoExec macro.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
R

red6000

Thanks for that, but I want the tooltip (ie the yellow screen tip that
appears when you hover over the button) to be different to the name that
appears on the toolbar button.
 
J

Jay Freedman

In that case you do need VBA to set the tooltip. (I never show text on
my buttons, to save space, so I just set the name.)

But setting the tooltip once and then saving the template that
contains the toolbar should be sufficient. You can even do it in the
Immediate window of the VBA editor. An AutoExec that runs on every
startup is overkill.
 

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