Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code block, operating on a chart object named currChart,
which creates a set of series that reference cells from a worksheet object named simulationSheet: Dim newSeries As Series For i = 1 To numSeries 'Create a new series Set newSeries = currChart.SeriesCollection.NewSeries newSeries.name = simulationSheet.Cells(1, i) newSeries.Values = simulationSheet.Range(simulationSheet.Cells(2, i), simulationSheet.Cells(numDays, i)) Next i This code works great when numDays is small, less than 60. However, if I try to execute this code when numDays is large, say around 1600, then the first series I create works. But the second time (when i = 2) the series is created, and then on the next line (where it modifies the name) I get the following error: Run-time error €˜1004: Unable to set the Name property of the Series class Also, if I inspect the newSeries object after it has been created, many of its member objects (i.e. AxisGroup, ErrorBars, Formula€¦) have the value: <Unable to get the (object type AxisGroup,ErrorBars,Formula, €¦) property of the Series class |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Run time error 1004, General ODBC error | New Users to Excel | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Run time error '1004': Generaol ODBC error | Excel Programming | |||
Run time error 1004 General ODCB Error | Excel Programming | |||
Application Run Time Error 1004 and Stack Error | Excel Programming |