ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   How to extract the address of a chart serie (https://www.excelbanter.com/charts-charting-excel/121661-how-extract-address-chart-serie.html)

Vinz

How to extract the address of a chart serie
 
Hi there,

I would like to extract, within a vba procedure, the range a chart
serie comes from.

I know about the following code:

myvar = ActiveChart.SeriesCollection.Item(1).Formula

but this code return an absolute address and not a range.
Does someone has any idea?

Thanks a lot in advance,
Vincent


Jon Peltier

How to extract the address of a chart serie
 
John Walkenbach has authored a class module which parses the chart series
formula and extracts this information:

http://www.j-walk.com/ss/excel/tips/tip83.htm

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______

"Vinz" wrote in message
s.com...
Hi there,

I would like to extract, within a vba procedure, the range a chart
serie comes from.

I know about the following code:

myvar = ActiveChart.SeriesCollection.Item(1).Formula

but this code return an absolute address and not a range.
Does someone has any idea?

Thanks a lot in advance,
Vincent





All times are GMT +1. The time now is 12:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com