Giving a Macro a tool tip

E

emc

When you create a macro can you give it a name? I have several macros on a
toolbar but when you hover over them each macro has its number, ie Macro1,
Macro2, etc. As they have been assigned icons I was wondering if a name
could be given to them.

emc
 
D

dp

Someone can probably give a more complete answer, but I use Word 2003 and I
have done this by right clicking on the toolbar | customize | right click
again on the toolbar macro and you get choices you might use.
dp
 
J

Jay Freedman

emc said:
When you create a macro can you give it a name? I have several
macros on a toolbar but when you hover over them each macro has its
number, ie Macro1, Macro2, etc. As they have been assigned icons I
was wondering if a name could be given to them.

emc

(Assuming you have Word 2003 or earlier):

You can change the text of the button's tooltip at any time. Open the Tools
Customize dialog. Then right-click the button on the toolbar. In the menu
that opens, the Name field near the top is editable -- make it say whatever
you want.

This is different from changing the macro's name. To do that, open the VBA
editor and change the first line of the macro. For example, change

Sub Macro1()

to

Sub ThisIsMyMacro()

If you do that, you'll have to delete the existing button (which won't work
any more) and create a new one.

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

stalin12

emc;365048 said:
When you create a macro can you give it a name? I have several macros
on a
toolbar but when you hover over them each macro has its number, ie
Macro1,
Macro2, etc. As they have been assigned icons I was wondering if a
name
could be given to them.

emc

thnks fo rthe post
 
S

Suzanne S. Barnhill

Thanks for that, Jay. I was always afraid that if I changed the display
name, Word wouldn't know what macro it was associated with any more.
 
E

emc

Jay,

It was the Macro name I was wanting to change and this has worked a treat.

Thank you.

emc
 

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