Series Collection Question

G

Guest

I keep getting an error with the following code:

Dim mySrs As Series

For Each mySrs In oChartObj.Chart.SeriesCollection
Debug.Print mySrs.PlotOrder, mySrs.Name, mySrs.Formula
If (mySrs.Name = SeriesStr) Then
Debug.Print "Found "; SeriesStr
End If
Next

I get a "Unable to get the PlotOrder property of the Series Class"

I am trying to update the series range values. I have other functions that
work correctly on other charts. I checked the chart to very the name of the
object is in the chart.

Any help would be great...

I really would like to be able to generate the charts on the fly but there
is so much formatting that it makes it impractical.

Thanks.
 
P

Peter T

What ChartType(s) is/are applied to your series. Can return very little from
series in a 3DSurfaceArea type, also (rarely) can be problematic from 2nd &
subsequent series of certain chart types.

Regards,
Peter T
 
J

Jon Peltier

Are any of the series backed up by unplottable data (no numeric values to
plot in the data ranges so no points are plotted)? If so, marker-based
series (line and XY chart series) cause errors when you try to use VBA to
read some of their properties.

- Jon
 
G

Guest

I am plotting a single point that has data in it. The odd part is that this
function used to work and I have not had any problems before.
 
J

Jon Peltier

I don't think I know enough about your particular error. Does the point
appear in the chart?

- Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top