Thread: macro button
View Single Post
  #4   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill Suzanne S. Barnhill is offline
external usenet poster
 
Posts: 33,624
Default macro button

I'm a VBA dunce myself, but I believe what you need to do is open the VBA
Editor (Alt+F11) and look for your macro. If you didn't specify any other
module to save it in, it will be saved in the NewMacros module of
Normal.dot, which is what opens by default when you open the editor.
Whatever appears after Sub is the name of the macro. Just change that name
to whatever is on the button, and with any luck the button will work.

Failing that, in Tools | Customize, select the current macro and create a
button for it. Then right-click on the existing button and Copy Button
Image. Right-click on the new button and Paste Button Image. Then drag the
old button off the toolbar.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Jack B" wrote in message
...
Suzanne --

You're talking to a visual basic Rodney Dangerfield. I tackle something
like this only once in a blue moon, and was lucky to figure out how to
rewrite it without screwing up something else. Seems like a number of
macros are on the same "sheet."

Anyway,
1) I am not sure what to rename the macro. When I move the cursor over

the
button, it says "BB macro." However, I know there can't be any spaces,

and
I'm not sure that "BBmacro" was actually the name. What name do I need to
change it to?
2) To change the name, do I go back to VB and change the name -- that's

it?

Jack


"Suzanne S. Barnhill" wrote in message
...
Why not just rename the macro?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup

so
all may benefit.

"Jack B" wrote in message
...
Re Word 97 ----

Years ago I created a macro -- call it BBmacro -- and made a button for

it
(put into the Formatting toolbar).

I have accidentally deleted the macro using the Visual Basic editor, so

I
created another similar macro using a different name -- call it JBmacro.
How do I make the old button call up JBmacro?

Jack