Accessing member shapes of a grouped shape

Y

yosuke

Hi

I need to do some text manipulations on a number of manually created Visio
diagrams, and I've started exploring the VBA path.

I cannot figure out how I can access each of the component shapes that are
grouped.

I'm using the Page.Shapes property to get the shapes. If gives me, so to
say, the top-level shapes contained in a page; i.e., if a shape if grouped,
this just gives me the grouped shape, but not its member shapes.

I can tell if the shape is grouped or not by the Shape.ObjectType property
(visTypeGroup), but from there I can't figure out how to access the member
shapes of this grouped shape, as I do not see such property of a shape.

How do I do this? I'd like to avoid ungrouping, but if I have to, I'd have
to group things back to the way they were after I do the text manipulation.


Any feedback will be greatly appreciated.
TIA,

-Yosuke
 
J

JuneTheSecond

You could access to a shape in the group by Shape.Shapes(Index or Name)
property.
 

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