I create the group using code.
I insert a picture into the worksheet
(activesheet.picture.insert ...) and then create a textbox
(activesheet.shapes.addlabel ...) in close proximity to
the inserted picture. I then select the two items and
group them by using ...
ActiveSheet.Shapes.Range(Array(PictName, LabelName)).Select
Selection.ShapeRange.Group.Select
I then name the group using a preselected naming
convention.
What I want to be able to do is when either of the grouped
items is selected (which results in the name of the item
being displayed in the name box on the left hand side of
the formula bar) is determine, using code, which group the
selected item belongs to.
I have tried using things like Parent and GroupName but I
can't seem to get it work as appears that I am not
applying it to the correct object.
David