Processing Groups through VBA

C

cmjm15

vsoSelection = ActiveWindow.Selection
For each n in Selection
<retrive characters>
<Perform calculations and changes>
Next n
The above works for processing native visio shapes, but how do I process a
group's submembers?
a code example would be appreciated.
Thanks.
 
J

junethesecond

Using shape.shapes property.
Dim shp As Visio.Shape
Dim child As Visio.Shape
For Each shp In ActiveWindow.Selection
For Each child In shp.Shapes
Debug.Print child.Index, child.Name
Next child
Next shp
 

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