Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Menus and Toolbars / September 2004

Tip: Looking for answers? Try searching our database.

Events not working for a Toolbar button / combo-box in Word 2000

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sagar Gadre - 22 Sep 2004 14:14 GMT
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.
Cindy M  -WordMVP- - 23 Sep 2004 10:15 GMT
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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.