I found some useful code recently which claimed to make charts independent of their source data ranges by making the assignment ser.values = ser.values, where ser is a series object. The practical effect of this is that in the SERIES formula for a chart, the cell range (e.g. B2:BA2) is replaced by an array of values (e.g.{1,2,…,52}).
This has been failing on certain charts with error 1004 unable to assign to series property, and on revisiting this today it seems to me that the problem is with the length of the array.
I have 52 values in each data series. Where each data point is a 3-digit number, the assignment works. If each data point is a 4-digit number, the assignment fails with the error given. However, I can’t find a specific limitation of Excel that corresponds to this! (e.g. max formula length = 1024 characters, but I can’ t be exceeding 300 in total).
Can anyone shed any light on which limit I’m exceeding?
Thanks
Jeremy