Macro in visio

L

LittleWork

I can create a macro for organize one organigram
but I dont know the tree structure I found the father
but I don't find the children

Anybody know?
 
J

John Marshall, MVP

You can use Parent to find out the father, which I believe you have found.
To find the children, is a bit of a trick. Most people looking at a Visio
orgchart would say that boss was connected to employee #12, but in fact,
Boss is connected to a 1-d connection line that is connected to employee
#12. So to find the children, you need to look at the shapes Connection
collection and then for each entry, look at that Connection collection. Each
shape has two collections Connect and FromConnect. The link John supplied
should help.


John... Visio MVP

Need stencils or ideas? http://visio.mvps.org/3rdparty.htm
Need VBA examples? http://visio.mvps.org/VBA.htm
Visio Wishlist http://visio.mvps.org/wish_list.htm
 

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