Maximum Array Size - VBA

starl

Administrator
Joined
Aug 16, 2002
Messages
6,091
Office Version
  1. 365
Platform
  1. Windows
I've been doing some reading and, if I understand correctly, when it comes to VBA arrays in Excel 2k and up, the only size limitation is the available memory.

In previous versions there were limitations of ~4000 and ~5000 elements... and now, there are none, for all practical purposes.

Am I understanding this correctly?

I am NOT talking about worksheet arrays - I only refer to the variable Array used in VB.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
What are those curly braces {} in your formula? The first one is in the wrong place for an array formula. Type the formula without the braces, press Ctrl+Shift+Enter and Excel will add them for you. The formula will look like this in the formula bar:

{=INDEX('Kiss Future'!$A$2:$J$23057,SMALL(IF($G$3='Kiss Future'!$A$2:$A$23057,ROW('Kiss Future'!$A$2:$A$23057),""),ROW(1:1)),COLUMN(A:A))}
 
Upvote 0
sorry - I was writing the formula out from memory, as I had closed the workbook in frustration at my lack of progress. Then, having made the post I realised that I had made an error in the formula (I might try writing out non working formulae from memory again - it worked wonders!) and that was the reason for the problem. I was referencing a few rows above A1 in the original without noticing. I wrote the brackets in the wrong place at the end of a calamitous day of brain numbing awfulness where the massed armies of my own incompetence, recalcitrant computers and plain back luck were assailing me on all sides, and beset as I was with these terrors I was sinking into the cotton wool of stupidity. You are right about the brackets; I wrote them in myself in a distracted and neurotic state while pouring coffee and fury onto an already bespoiled keyboard. The machine was right to vomit my excremental offerings in my face, and I apologise for having brought a small part of that horrific day into your life; you have been tainted and I can only hope you were able to wash the stench of stupidity off your hands before it spread and took over the world. After I walked home (don't ask) I had a beer. Best ever :¬)
 
Upvote 0

Forum statistics

Threads
1,225,684
Messages
6,186,425
Members
453,354
Latest member
Ubermensch22

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top