Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default SeriesCollection(i) and XValues= Array() error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default SeriesCollection(i) and XValues= Array() error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default SeriesCollection(i) and XValues= Array() error

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,290
Default SeriesCollection(i) and XValues= Array() error

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't set Chart's SeriesCollection XValues BW Excel Programming 2 September 26th 05 05:32 AM
VBA- SeriesCollection(1).Value error crossplatform Excel Programming 3 April 12th 04 04:27 PM
Possible to assign an array to a SeriesCollection Stephen Boulet Excel Programming 2 November 13th 03 06:36 PM
Set Xvalues to an array of date, but the x-scale not correct Alan Pong Excel Programming 2 September 8th 03 07:02 AM
Set Xvalues to an array of date, but the x-scale not correct Alan Pong[_2_] Excel Programming 2 September 8th 03 03:25 AM


All times are GMT +1. The time now is 03:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"