Auto Macros?

R

RJ Lohan

Howdy all,

Does Visio (2000 at least) provide auto macros similar to the Microsoft
Office software? (SUch as Word, Excel, etc.)

And how do you get macro code to load automatically as an 'addin' in
Visio when the program is run?


Cheers,
Ryan
 
C

Chris Roth

Visio has VBA (Visual Basic for Applications) just like Word and Excel. The
code is stored with the document, or Visio template. But Visio templates
don't "inherit" macro code, say the way Normal.dot does in Word, so you end
up with your code all over the place, in every single document. If the code
is small, this is no big deal.

If you want to make a "real" add-in, you can use VB, VB.Net, C#, C++ to make
an .EXE or a COM Add-in, or if you are into C++, you can a make a .VSL (a
Visio dll) which integrates very tightly with Visio.


--

Hope this helps,

Chris Roth
Visio MVP
 
D

David Parker

If you have yo use VBA though, then you could add code to Document_Open in
the VBA project behind a stencil that you open in your normal drawing types.
 

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