VISIO 2002 Add-ins

C

calvinX

Hi All,

My question is simple: How do I call code in my addin from the menu? I
have the menu objects and everything just need to know how to reference a
visio add-in and call a public method.

Thanks

Calvin X
 
D

dani

Hi Calvin

I had to do the same, and that's what I did:
I created my add-in as a ActiveX Type Library.
Then with VBA I imported this library and created some macros which make
the calls to the library of my add-in.
Finally, I called the macros from the menu objects to execute the public
methods...

Hope that somehow helps

Daniel
 
C

calvinX

Thanks for the info but I really need to get away from exposing code in the
document or the stencils. Is there a way to use the RUNADDON function to do
this?
 
D

David Parker

If you mean a COM Ad-in, then you could cause a specific cell value to
change in Visio, and listen to its formula changed event in the COM addin.
Then respond with your required actions depending upon the cells values.
 

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