how to add toolbar icon by VB or VBA?

S

Soe

when i tried to add in toolbar icon by VBA or VB, i can see new toolbar
icon, however, after close the application and reopen it, the toolbar icon
is no more there.
when i use right click and add userdefined button, it works.
any suggestion how to keep toolbar icon?
 
C

Cindy Meister -WordMVP-

Hi Soe,
when i tried to add in toolbar icon by VBA or VB, i can see new toolbar
icon, however, after close the application and reopen it, the toolbar icon
is no more there.
when i use right click and add userdefined button, it works.
any suggestion how to keep toolbar icon?
Which application are you working in? If it's Word, you need to set the
CustomizationContext to the location where you want the toolbar changes
saved (the ActiveDocument, its AttachedTemplate, NormalTemplate (global) or
another Addin template).

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

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