Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Assign data series to primary axis | Charts and Charting in Excel | |||
chart with two data series and two colors for each data series | Charts and Charting in Excel | |||
Can I use an array formula as a series in an Excel chart | Charts and Charting in Excel | |||
chart data series -- plot a table as a single series | Charts and Charting in Excel | |||
Extending a Chart Data Series from an Array - Can it be done? | Charts and Charting in Excel |