charting run time error, Excel 2007 SP2 problem with SeriesCollection and .Formula property
I get the following as expected
=SERIES(,Sheet1!$A$2:$A$4,Sheet1!$B$2:$B$4,1)
=SERIES(,Sheet1!$A$2:$A$4,Sheet1!$C$2:$C$4,2)
=SERIES(,Sheet1!$A$2:$A$4,Sheet1!$D$2:$D$4,3)
=SERIES(,Sheet1!$A$8:$A$12,Sheet1!$B$8:$B$12,1)
=SERIES(,Sheet1!$A$8:$A$12,Sheet1!$C$8:$C$12,2)
=SERIES(,Sheet1!$A$8:$A$12,Sheet1!$D$8:$D$12,3)
2007 SP1, calc automatic, in a new workbook
Seems there's something different between our respective setups. Could you
double check in a new instance and confirm you only get =SERIES(,,,1) etc
with my sample routine
Advise your specs and I'll seek opinion off-line
Regards,
Peter T
"Brian Murphy" wrote in message
...
I do something like this
.Values = Range("blahblahblah")
This works, and the chart displays the right data,
but then doing
s = .Formula
returns a string with nothing between the commas for the Values
argument.
If I stick in an Application.ScreenUpdating = True
then the formula string does contain what it should.
By the way, calculation is set to automatic.
How about this!
I copied your routine to an empty workbook.
Put some data in the worksheet cells.
And ran your routine.
The resulting chart looks right,
but this was in the immediate window
=SERIES(,,,1)
=SERIES(,,,2)
=SERIES(,,,3)
=SERIES(,,,1)
=SERIES(,,,2)
=SERIES(,,,3)
In your routine this is harmless.
My routine throws an error when it tries to reset the .Formula
property with empty arguments extracted from the incorrect .Formula
string.
Brian
|