Embedded chart location address

A

avi

Hello,

Is there a VBA way to return the Range address of an embedded chart.
location on the sheet?

I mean by that the location of the chart as an object itself and not
of its series

Thanks
Avi
 
J

JLGWhiz

The chart object is like a shape object and basically floats above the
sheet. You can get the Top and Left properties of the ChartObject, which
will give you an anchor point, in points, but I don't believe you will get
an address in terms of a cell reference.
 
P

p45cal

avi;583029 said:
Hello,

Is there a VBA way to return the Range address of an embedded chart.
location on the sheet?

I mean by that the location of the chart as an object itself and not
of its series

Thanks
Avi


Code
-------------------

Sub blah()
With ActiveSheet.ChartObjects("Chart 1")
MsgBox Range(.TopLeftCell, .BottomRightCell).Address
Range(.TopLeftCell, .BottomRightCell).Select
End With
End Sub
 

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