Max length of chart data series array

  • Thread starter Thread starter madge
  • Start date Start date
M

madge

I dynamically produce my chart and the SeriesCollection.Values
property is populated as an array (as opposed to a range). It has to
be an array because the values are calculated.

It all worked well for a number of weeks but now I get an error when
producing the charts. The error is 1004 - Unable to set the Values
property of the Series class.

The problem seems to be that my Array (43 values in it when the error
happened.) appears to be longer than what the Values property can
handle. It plots fine if I have 42 values in the array.

Has anyone come across this before? The values are currently
formatted to 1 decimal place before they are entered into the array.
If I format them to zero decimal places, then it lets me plot my 43
values but I don't like this because the rounding differences adversly
affect the calculated values that I am plotting.

How can I adjust the Values property so it lets me plot more than 42
weeks of calculated values?

Thanks
madge
 
Back
Top