Creating Orgchart using VBA

H

helgenymoen

Hi

Is it possible to create an org chart (for a page object) programatically
using VBA?
If so, please add some example code.

regards,
Helge
 
A

Al Edlund

given the fact that an org chart is rarely anything more than a fancy tree
diagram, you might consider downloading the v2003 sdk which has an example
of how to create one....
Al
Hi

Is it possible to create an org chart (for a page object) programatically
using VBA?
If so, please add some example code.

regards,
Helge
 
M

Mai-lan [MS]

Hi, there: The Organization Chart Wizard has a command-line interface that
you can use to create an org chart. We don't have a VBA sample specifically
but we do have a VB sample in the Visio SDK Code Librarian samples called
"Organization Charts from Exchange."

If you don't already have the Visio SDK, here's the links:

Visio 2002 SDK:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvisio02/html/visintsdk.asp
Visio 2003 SDK:
http://msdn.microsoft.com/library/d...html/Visio2003SDK_ReleaseNotes_HV01083290.asp

Thanks,
Mai-lan
Microsoft Corp.
Hi

Is it possible to create an org chart (for a page object) programatically
using VBA?
If so, please add some example code.

regards,
Helge
 
H

Helge

Thanks, but I don't think this wizard component will work in my case.
What I need is to create the Position- and Dynamic connector shapes
programatically to
maintain control over my chart (actually it is a binary tree).

Any suggestions besides the Wizard?

regards,
Helge
 
M

Mai-lan [MS]

Yes, Al's right with his previous post. There's a sample in the SDK that
shows how to create and connect connector shapes in a flowchart that you can
use as a model. This uses the Visio Object Model, instead of the Org Chart
solution, which means you have more tools (docs and samples) in the SDK at
your disposal.

Thanks,
Mai-lan

Thanks, but I don't think this wizard component will work in my case.
What I need is to create the Position- and Dynamic connector shapes
programatically to
maintain control over my chart (actually it is a binary tree).

Any suggestions besides the Wizard?

regards,
Helge
 
J

Jason Weiss

Hi,

How fortunate that this thread appeared just as I was about to ask many of
the same questions! My problem is that most users of any solution I create
will not have Visio, so an Org Chart solution is pretty much all I've got.
However, I can't seem to find any information on automating org charts
anywhere online. Can anyone suggest a source of more information on it?

Thanks...

....Jay
 

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