I having trouble adding additional series to an existing chart. What is the proper method? .NewSeries or .Add?
I am currently using something like
For x = 2 to y+1
Set srsNew = ObjChart.SeriesCollection.NewSeries
With srsNew
.Name = "Name"
.XValues = testrange 'already defined earlier in code
.Values = testrange2
.ChartType = xlXYScatterLinesNoMarkers
End With
Next x
The problem is it is changing the plotting axes. How do I get it to plot on the same axes as the primary chart
I am currently using something like
For x = 2 to y+1
Set srsNew = ObjChart.SeriesCollection.NewSeries
With srsNew
.Name = "Name"
.XValues = testrange 'already defined earlier in code
.Values = testrange2
.ChartType = xlXYScatterLinesNoMarkers
End With
Next x
The problem is it is changing the plotting axes. How do I get it to plot on the same axes as the primary chart