K
ken.street
I have a master group shape into which I drop either another group
shape or a single item shape. I need to identify whether the new
dropped shape is a group or not so I used the following code:
Set vsoSelection = ActiveWindow.Selection
vsoSelection.IterationMode = visSelModeOnlySub
If vsoSelection.Count = 0 Then
I believed that the single dropped item would return a Count of 0
whereas the dropped group shape would give me the number of sub items
in the group, however both shapes are giving me a Count of 1??
If I drop the single shape outside of the master group shape then the
selection returns a Count of 0 so it must have something to do with
dropping the shape into a group??
Any help much appreciated.
Regards
Ken
shape or a single item shape. I need to identify whether the new
dropped shape is a group or not so I used the following code:
Set vsoSelection = ActiveWindow.Selection
vsoSelection.IterationMode = visSelModeOnlySub
If vsoSelection.Count = 0 Then
I believed that the single dropped item would return a Count of 0
whereas the dropped group shape would give me the number of sub items
in the group, however both shapes are giving me a Count of 1??
If I drop the single shape outside of the master group shape then the
selection returns a Count of 0 so it must have something to do with
dropping the shape into a group??
Any help much appreciated.
Regards
Ken