Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know this issue has been hashed and rehashed, but I still can not
find a satisfactory hack to be able to accomplish the following: I have a recordset that I am pulling from a database based on various parameters. The length of the recordset is indeterminate (sometimes 5 records, other times 200 etc.) Values in the recordset are stored in various Arrays, and these Arrays are used to generate values for Series in a chart. I am periodically running across the error that XValues can not be set. I know this is because there is a limitation on "formula" length when dealing with Arrays, but is there a way to short circuit this process, by adding severalsmaller arrays to XValues ? For example: SeriesCollection(j).xValues = Arrays1() SeriesCollection(j).xValues.add(Arrays2()) I would like to avoid dumping my recordset to "dummy" workbook. Any suggestions are appreciated. TIA |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have you looked at Tushar Mehta's solutions in this post...
http://makeashorterlink.com/?C349153FC -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware "MJKulangara" wrote in message ... I know this issue has been hashed and rehashed, but I still can not find a satisfactory hack to be able to accomplish the following: I have a recordset that I am pulling from a database based on various parameters. The length of the recordset is indeterminate (sometimes 5 records, other times 200 etc.) Values in the recordset are stored in various Arrays, and these Arrays are used to generate values for Series in a chart. I am periodically running across the error that XValues can not be set. I know this is because there is a limitation on "formula" length when dealing with Arrays, but is there a way to short circuit this process, by adding severalsmaller arrays to XValues ? For example: SeriesCollection(j).xValues = Arrays1() SeriesCollection(j).xValues.add(Arrays2()) I would like to avoid dumping my recordset to "dummy" workbook. Any suggestions are appreciated. TIA |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, JIm.
I'm curious about his solution regarding multidimensional arrays. It occurs to me, that even in this solution there is an upper bound to the number of values you may have, but that it is higher than for 1 dimensional arrays. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I don't see where he mentioned a limit.
Why not try it and see. Of course, a chart has a limit on the number of points... Data points in a data series for 2-D charts 32,000 Data points in a data series for 3-D charts 4,000 Data points for all data series in one chart 256,000 Jim Cone "MJKulangara" wrote in message... Thanks, JIm. I'm curious about his solution regarding multidimensional arrays. It occurs to me, that even in this solution there is an upper bound to the number of values you may have, but that it is higher than for 1 dimensional arrays. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't set Chart's SeriesCollection XValues | Excel Programming | |||
VBA- SeriesCollection(1).Value error | Excel Programming | |||
Possible to assign an array to a SeriesCollection | Excel Programming | |||
Set Xvalues to an array of date, but the x-scale not correct | Excel Programming | |||
Set Xvalues to an array of date, but the x-scale not correct | Excel Programming |