excel 2007 Seriescollection.Add bug

B

bmurphy

Can someone please confirm if this is a problem with excel 2007.

When I manually add a data series to a chart, the new series becomes
the last series in the SeriesCollection object. When I add a data
series using VBA either by .Pasting or by using SeriesCollection.Add,
the new series becomes the first series on the chart. Earlier excel
versions don't do this.

Is there any way to force excel 2007 to add the series to the end of
the collection, and thereby match the behavior of earlier excel
versions?

Thanks,

Brian Murphy
 
B

bmurphy

False alarm. Sort of.

It turns out that the series numbering ended up different in Excel
2007 because Excel 2007 has different behavior while executing a
statement that does

Selection.Formula = "=SERIES(...."

If the series number is not explicitly given in the above statement,
then excel 2007 changed the selected series to be series number 1.
Earlier versions didn't do this. So the fix was easy - to just give
the series number.

Brian
 

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