How to iterate across grouped shapes?

Started by dirkasarus-rex, February 09, 2015, 11:13:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dirkasarus-rex

This iterates across standard shapes:

===============================
Dim iShpNum As Integer
Dim oShp As Visio.Shape

For iShpNum = 1 To Visio.ActivePage.Shapes
   Set oShp = Visio.ActivePage.Shapes(iShpNum)
   'do stuff with oShp here
Next
===============================

But shapes that are grouped together are ignored by this.  How do I iterate across the groups and shapes contained by those groups?

Thank you for your insight!

Dirkasarus-rex

Yacine

#1
This topic should help you:
http://visguy.com/vgforum/index.php?topic=5802.0;nowap


[Paul - Moderator] Edited to make URL into a clickable link
Yacine

dirkasarus-rex

With a bit of manipulation, that worked perfectly.  Thank you Yacine!