Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
classpeople
 
Posts: n/a
Default how can i getting chart's sourcedate range

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 !
  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

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/
_______


classpeople wrote:

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 !

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting source data range with Charts D Charts and Charting in Excel 2 January 1st 06 02:51 AM
Range Names with Charts ArthurJ Charts and Charting in Excel 3 June 6th 05 06:49 PM
Can I use formulas that return cell range ref. in charts X series cwilliams Charts and Charting in Excel 4 June 3rd 05 03:08 PM
Can't create dynamic charts Brian Sells Charts and Charting in Excel 7 March 22nd 05 04:23 AM
Auto x range start value, xy charts [email protected] Charts and Charting in Excel 5 January 24th 05 11:49 PM


All times are GMT +1. The time now is 07:51 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"