Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / January 2006

Tip: Looking for answers? Try searching our database.

what is array size limit in VBA?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tony - 21 Jan 2006 19:54 GMT
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.
Tom Ogilvy - 21 Jan 2006 20:02 GMT
Apparently you index is dimensioned as Integer.  Dimension it as Long

Signature

Regards,
Tom Ogilvy

> 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
[quoted text clipped - 6 lines]
> new data point each time.  I would be very grateful if you can give me some
> advice.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.