Using VBA

I

Ivor Williams

I use VBA in Access quite extensively. I'd now like to start using it in
Visio, but I'm having trouble even getting started. As an example, I'd like
to choose from a number of options in a form and then have the drawing
created programatically using master shapes that already exist in a stencil.
Can someone please get me pointed in the right direction? A simple example
would be appreciated.

Ivor
 
J

John Goldsmith

Hello Ivor,

Basically the object model is Application.Document.Page.Shape. So as a good
starting example have a go with this:

http://msdn2.microsoft.com/en-us/library/aa201773(office.10).aspx

Aside from "Developing Microsoft Visio Solutions" (the above link (also a
book)) check out examples at the following links:

http://visio.mvps.org/VBA.htm

http://visguy.com/

http://blogs.msdn.com/visio/

....plus, in terms of books you can check out Graham Wideman's Visio 2003
Developer's Survival Pack:

http://www.diagramantics.com/

....and David Parker's new Visualizing Information for Microsoft OfficeVisio
2007:

http://www.amazon.com/Visualizing-I...0513456?ie=UTF8&s=books&qid=1189022090&sr=8-8

Hope that helps.

Best regards

John


John Goldsmith
www.visualSignals.co.uk
 
A

Al Edlund

and besides John's excellent list try out the v2007 sdk which has examples
in vb which are fairly easy to move in to vba.
al
 

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