Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
emc emc is offline
external usenet poster
 
Posts: 9
Default Giving a Macro a tool tip

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
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
DP DP is offline
external usenet poster
 
Posts: 162
Default Giving a Macro a tool tip

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

"emc" wrote:

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

  #3   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Giving a Macro a tool tip

emc wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.


  #4   Report Post  
stalin12 stalin12 is offline
Junior Member
 
Posts: 2
Default

Quote:
Originally Posted by emc View Post
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
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default Giving a Macro a tool tip

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.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Jay Freedman" wrote in message
...
emc wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup
so all may benefit.






  #6   Report Post  
Posted to microsoft.public.word.docmanagement
emc emc is offline
external usenet poster
 
Posts: 9
Default Giving a Macro a tool tip

Jay,

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

Thank you.

emc

"Jay Freedman" wrote:

emc wrote:
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofit is giving me fits Mark Tables 1 June 21st 06 10:28 AM
"How do I delete a Macro from the tool bar? WolfMaster Microsoft Word Help 1 November 28th 05 08:27 PM
How do I keep a macro on the tool bar? Ann429 Microsoft Word Help 2 July 15th 05 01:21 PM
How do I remove a macro from the tool bar? mspm45 Microsoft Word Help 2 July 3rd 05 01:16 PM
Select Tool in Macro ?? InOverMyHead New Users 6 May 11th 05 04:37 PM


All times are GMT +1. The time now is 01:47 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"