PC Review


Reply
Thread Tools Rate Thread

Chart: range info from seriescollection?

 
 
=?Utf-8?B?RXhjZWxlcmF0ZS1ubA==?=
Guest
Posts: n/a
 
      23rd May 2006
I would like to fill a combobox (Rowsource) with data that are used in for
instance the XValues or Values of a Seriescollection of a graph.
"ActiveChart.SeriesCollection(1).Values" does not give the right type (I was
hoping for a string type of info like "Sheet1.Range(a1:a10)").
How to get a Range to be used as Rowsource for my combobox???

Thanks for your suggestions,

JB
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      24th May 2006
The Values and XValues will return an array of values. To get the range
address like this, you will need to parse the series formula. Or you could
use John Walkenbach's class module for extracting elements of the chart
series:

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

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


"Excelerate-nl" <(E-Mail Removed)> wrote in message
news:AA34BBB1-BC22-4FCE-B14D-(E-Mail Removed)...
>I would like to fill a combobox (Rowsource) with data that are used in for
> instance the XValues or Values of a Seriescollection of a graph.
> "ActiveChart.SeriesCollection(1).Values" does not give the right type (I
> was
> hoping for a string type of info like "Sheet1.Range(a1:a10)").
> How to get a Range to be used as Rowsource for my combobox???
>
> Thanks for your suggestions,
>
> JB



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chart SeriesCollection Names EPL Microsoft Excel Programming 2 8th Oct 2009 08:31 PM
Chart: range info from seriescollection? =?Utf-8?B?RXhjZWxlcmF0ZS1ubA==?= Microsoft Excel Programming 1 24th May 2006 03:09 AM
Can't set Chart's SeriesCollection XValues =?Utf-8?B?Qlc=?= Microsoft Excel Programming 2 26th Sep 2005 05:32 AM
Formatting a new seriescollection in a chart object =?Utf-8?B?UGF1bCBXaWxsbWFu?= Microsoft Excel Programming 2 24th Aug 2004 08:22 PM
Redefining the Range for a SeriesCollection David Glotfelty Microsoft Excel Charting 1 19th Jul 2003 06:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 PM.