how can i getting chart's sourcedate range

C

classpeople

I can create a chart by set it's sourcedata like
excelchart.SetSourceData(excelrange);//delphi programme language
but how can i get sourcedata range from a existed chart
just return like "Sheet2!$B$2:$E$12"

Thanks !
 
J

Jon Peltier

There is no easy way to do this. It is possible that different series
have different numbers of points, and different starting rows or
columns, or even different sheets. You can determine the source of each
series' data, and perhaps do a union of these ranges.

John Walkenbach has developed a class module to extract this information
from a series. It's located on his web site:

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

Lots of other cool stuff there too.

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

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