I have a created a macro that creates a Toolbar. I want to
auto-invoke
the macro. I am able to do so. But after invoking the
toolbar the
events like clicking on a button on the toolbar or
selecting from the
combo-box nothing happens. I have created the entire
toolbar using
CommandBars Collection on Document object.
Thus toolbar is created but it is of no use.
Hi Sagar,
Do you assign the macro's name a button should run to each
button's OnAction property? If the macro isn't saved in the
same container as the toolbar objects you're creating, you
may need to fully qualify it
(projectname.modulename.procedurename)
You also have to be careful to set the CustomizationContext
before you start creating CommandBar objects, so that they're
saved in the proper "container".
> I have a created a macro that creates a Toolbar. I want to
> auto-invoke
[quoted text clipped - 8 lines]
>
> CommandBars Collection on Document object.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)