WernerGg
New Member
- Joined
- Oct 19, 2010
- Messages
- 43
I create shapes in charts by
Those shapes are clearly some sort of child of the chart. E.g. they cannot be positioned out of the ChartArea.
Later I have to navigate from such a shape back to the containing chart. Unfortunatly the shapes parent is not the chart but the worksheet and I can find no other shape property to get back to the chart. Currently I use a brute force method by naming the shapes such that they can be identified.
Is there a clean method to find the Chart from the Shape?
Code:
Dim theChart as Chart, theShape as Shape
Set theChart = ....
....
Set theShape = theChart.Shapes.AddShape(......)
Later I have to navigate from such a shape back to the containing chart. Unfortunatly the shapes parent is not the chart but the worksheet and I can find no other shape property to get back to the chart. Currently I use a brute force method by naming the shapes such that they can be identified.
Is there a clean method to find the Chart from the Shape?