Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help in Charting: retrieving the series.

Status
Not open for further replies.

annanathan

Programmer
May 1, 2002
24
0
0
CA
Hi All,

I'm trying to retrieve the series from an already configured chart. I need to know what column is it referring to on the chart.

Any help is appreciated,
Thank you in advance.
 
Maybe I haven't explained the problem clearly...

I have created a linear chart in Excel.
I would like to retrieve the column id (eg. A, B, ... ) that the chart is reffering to using VBA. I need this id so that I could use it later in my VBA coding for other puposes.

How do I do this?
Please help.
Thank you.
 
See if this gets you anywhere:
For i = 1 To ActiveChart.SeriesCollection.Count
MsgBox ActiveChart.SeriesCollection(i).Formula
Next i
You should be able to extract the column from the formula property - just assign to a string and use left/mid/right/find etc
HTH Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top