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
 
Top