Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Assign data to chart series, using array

I'm having trouble assigning data to a chart series, using
an array. Here is my code, which bombs on the last line,
with an error saying that it can't set the Values property
of the Series class. Both mean and onestdplus are arrays.


'Build chart
Charts.Add
ActiveChart.ChartType = xlLineMarkers
ActiveChart.SeriesCollection.NewSeries

'Assign series values
ActiveChart.SeriesCollection(1).XValues = Range
("Dates")
ActiveChart.SeriesCollection(1).Values = Range
("Inputs")

ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).Values = mean

ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(3).Values = onestdplus


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Assign data to chart series, using array

I found the answer: There is a bug in Excel, described in
an article on the Microsoft website: Microsoft Knowledge
Base Article - 213653.


-----Original Message-----
I'm having trouble assigning data to a chart series,

using
an array. Here is my code, which bombs on the last line,
with an error saying that it can't set the Values

property
of the Series class. Both mean and onestdplus are arrays.


'Build chart
Charts.Add
ActiveChart.ChartType = xlLineMarkers
ActiveChart.SeriesCollection.NewSeries

'Assign series values
ActiveChart.SeriesCollection(1).XValues = Range
("Dates")
ActiveChart.SeriesCollection(1).Values = Range
("Inputs")

ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(2).Values = mean

ActiveChart.SeriesCollection.NewSeries
ActiveChart.SeriesCollection(3).Values = onestdplus


.

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
Assign data series to primary axis Art Charts and Charting in Excel 1 March 8th 09 10:06 PM
chart with two data series and two colors for each data series bikash Charts and Charting in Excel 0 January 17th 08 02:04 AM
Can I use an array formula as a series in an Excel chart mrice256 Charts and Charting in Excel 1 February 21st 07 03:13 PM
chart data series -- plot a table as a single series hjc Charts and Charting in Excel 7 September 20th 05 05:52 PM
Extending a Chart Data Series from an Array - Can it be done? Jon Peltier Charts and Charting in Excel 4 November 30th 04 03:30 AM


All times are GMT +1. The time now is 08:00 AM.

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

About Us

"It's about Microsoft Excel"