Custom Macros, Toolbars and Buttons

B

Barry

I have inherited a set of custom macros for creating and inserting images
into a document. A custom toolbar and set of buttons are associated with
this macro set. I am revising and enhancing the macro set, which includes
adding new buttons to the toolbar and modifying existing buttons. I've tried
everything I can think of and I can't do the following:

a. change an existing toolbar button's macro asignment from an obsolete,
deleted macro to its new and improved replacement
(the new macro has a different name)
b. add a new button to the toolbar and assign it to one of the new macros.

As usual, I expect this is simple stuff and I'm just too blind to see it.
Any help will be greatly appreciated.
 
J

Jay Freedman

For adding new buttons to a toolbar, see
http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm.

You can't easily change a button's assignment. What you can do is this
three-step process:
1. Display the Tools > Customize dialog, right-click the old button,
and choose Copy Button Image.
2. Insert a new button for the new macro and, as part of setting it up
as described in the article, right-click it and choose Paste Button
Image.
3. Delete the old button by dragging it off the toolbar while the
Customize dialog is still open.

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

Jonathan West

Barry said:
I have inherited a set of custom macros for creating and inserting images
into a document. A custom toolbar and set of buttons are associated with
this macro set. I am revising and enhancing the macro set, which includes
adding new buttons to the toolbar and modifying existing buttons. I've
tried
everything I can think of and I can't do the following:

a. change an existing toolbar button's macro asignment from an obsolete,
deleted macro to its new and improved replacement
(the new macro has a different name)
b. add a new button to the toolbar and assign it to one of the new
macros.

As usual, I expect this is simple stuff and I'm just too blind to see it.
Any help will be greatly appreciated.

Hi Barry

There are ways of changing a button's functions using VBA, for instance
changing the tooltip, which can't be done through the user interface. If
jay's answer doesn't do all you need, then ask again and I can point you in
the right direction.
 

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