August 22nd, 2011, 11:02 am
Note sure what your issue could be, this test function works fine here (Excel 2003) with 3000 rows, 160 cols. Using offset is a bit odd here though, usually you're better off passing in the entire range you want to operate on in as a parameter. Public Function testBigArray(arrayIn As Range, rows As Long, cols As Long) As VariantDim result() As DoubleDim i As LongDim j As LongReDim result(0 To rows - 1, 0 To cols - 1)For i = 0 To rows - 1 For j = 0 To cols - 1 result(i, j) = arrayIn.Offset(i, j).Value2 Next jNext itestBigArray = resultEnd Function
Last edited by
adcockj on August 21st, 2011, 10:00 pm, edited 1 time in total.