Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Renaming a macro
This is a simple question (I apologize) but I could not figure out how
tochange the name of one of my macros. When I tried to do this in Tools, Macros, Edit the macro disappeared from my list of macros. I was able to get it back pretty easily, but only with the old name. Then I tried Tools, Templates & Add-Ins, Organizer, but there was nothing in the macro Projects Items except NewMacros. NO sign of mine. But there MUST be a way to rename the macro. How? I have a Keyboard Shortcut to run that macro. Will it still work if the macro is renamed? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Renaming a macro
To change the name of a macro, you need to open the macro in the VBA editor.
One way to do that is Tools Macro Macros select the macro name Edit (you may have to set the "Macros in" box to the specific template or document containing your macro). Another way is to open the editor (Alt+F11) and select the template and module that contain the macro. When you can see the code, just edit the first line, for example change Sub MyMacro() to Sub MyOtherMacro() and save the template. After changing the macro's name, you will have to go to Tools Customize Keyboard and reassign the keyboard shortcut -- it won't automatically follow to the new name. -- 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. Joe McGuire wrote: This is a simple question (I apologize) but I could not figure out how tochange the name of one of my macros. When I tried to do this in Tools, Macros, Edit the macro disappeared from my list of macros. I was able to get it back pretty easily, but only with the old name. Then I tried Tools, Templates & Add-Ins, Organizer, but there was nothing in the macro Projects Items except NewMacros. NO sign of mine. But there MUST be a way to rename the macro. How? I have a Keyboard Shortcut to run that macro. Will it still work if the macro is renamed? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Renaming a Macro | Microsoft Word Help | |||
Renaming a file | Microsoft Word Help | |||
styles renaming | Formatting Long Documents | |||
Renaming title | Formatting Long Documents | |||
Renaming files | Microsoft Word Help |