vba chart range

Lochnagar

New Member
Joined
Jan 28, 2008
Messages
43
Hi All,

I have a question regarding charts, and was hoping someone might be able to help.

If you have an embedded chart with a series in it, is it possible, using vba, to obtain the x or y values/range referenced, and then write that to a cell.

e.g. if the x-values for series Case 2 is

=Case_2!R3C5:R126C5
...can I get this inputed into a cell (on the worksheet, containing the embedded chart i.e. so in say, A1, you'd see Case_2!R3C5:R126C5) so I can see which range it is referencing (i.e. treat Case_2!R3C5... as a string). I appreciate that I could just click on the series in question and assuming it is on the same worksheet as the embedded chart then I'll know, but I've got several embedded charts on one worksheet, where some reference data on other worksheets within the workbook.

Any help or suggestions would be hugely appreciated.

Regards,
Lochnagar
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,214,912
Messages
6,122,200
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top