+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    classpeople
    Guest

    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. #2
    Jon Peltier
    Guest

    Re: how can i getting chart's sourcedate range

    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 !


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0