Identify the shapes via VBA

B

Bob Ford

I need help on how to loop through a page and list the shapes under each
Manager.
My current code was able to iterate through each page when the shape is a
manager, but I need a list of the shapes under that manager.

Pls help.
TIA!
Bob
 
C

Chris Roth [MVP]

Hi Bob,

The first step is to look at a shape's FromConnects collection. That will
tell you which connectors are connected to the shape. Then you look at the
Connects collection for each connector to see which box is on the other end
of the connector. Check out the Developer Help to read about FromConnects or
Connects.

I suppose we should publish a "Get all connected shapes" class somewhere on
the net one of these days...

--
Hope this helps,

Chris Roth
Visio MVP

Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/
 

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