Below code loads a range into an array:
Dim Data() As Variant
Dim i As Long
Erase Data
i = 2: Do Until Sheets("whatever").Cells(i, 1) = "": i = i + 1: Loop
Sheets("whatever").Activate
Data = Sheets("whatever").Range(Cells(2, 1), Cells(i, 37)).Value
This used to work but since today (bits of new data?) gives me Run-time error '6' / Overflow in the line that loads the Data
array.
i = 242703 which is indeed the last row I want to load. Can this be two big for an array?