Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 313
Default what is array size limit in VBA?

I'm running Excel 2003 in Windows XP. I have 256MB Ram on my PC. I needed
to create a 1 dimensional array using VBA macro programming with more than
32768 array elements. When I try to read more than 32768 data points I get
an overflow error. I'm very surprised about this apparent limt as I
understood that Excel 2003 VBA array sizes were only limited by available
memory. Can you give me a definitive answer to the question: what is the
array size limit in Excel 2003 VBA? I should add that I'm using a dynamic
array when I'm reading in the data i.e. I redimension the array to add the
new data point each time. I would be very grateful if you can give me some
advice.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default what is array size limit in VBA?

Apparently you index is dimensioned as Integer. Dimension it as Long

--
Regards,
Tom Ogilvy


"Tony" wrote in message
...
I'm running Excel 2003 in Windows XP. I have 256MB Ram on my PC. I

needed
to create a 1 dimensional array using VBA macro programming with more than
32768 array elements. When I try to read more than 32768 data points I

get
an overflow error. I'm very surprised about this apparent limt as I
understood that Excel 2003 VBA array sizes were only limited by available
memory. Can you give me a definitive answer to the question: what is the
array size limit in Excel 2003 VBA? I should add that I'm using a dynamic
array when I'm reading in the data i.e. I redimension the array to add the
new data point each time. I would be very grateful if you can give me

some
advice.



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
limit worksheet size AdrianaMex Excel Discussion (Misc queries) 8 January 13th 08 10:06 PM
Is there an array size limit for MMULT or MINVERSE in excel 2007? jimr315 Excel Worksheet Functions 4 February 7th 07 10:48 PM
Cell size? Or size limit for Text data type? CClem Excel Discussion (Misc queries) 0 April 21st 06 04:09 PM
limit to possible array size? rachel Excel Programming 4 November 11th 04 02:41 AM
How to find out the size of a variable-size array ? Adrian[_7_] Excel Programming 1 July 6th 04 09:12 AM


All times are GMT +1. The time now is 02:39 PM.

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"