Hi,
I'm trying to get data from a variant array (7 x ~8000) into an excel range. When I try to use the following code:
.Range("A2"
.Resize(UBound(arrSchedule, 2), 7).Value = _WorksheetFunction.Transpose(arrSchedule)
I get the error message "Type Mismatch". It runs ok if I don't try to transpose the array, but then there are too many entries in the array for the number of columns in Excel. Because the array will be a different size every time I run it, I can't have the 8,000 odd dimension as the vertical dimension (or can I?)
Any ideas where I'm going wrong?
Thanks...
I'm trying to get data from a variant array (7 x ~8000) into an excel range. When I try to use the following code:
.Range("A2"
I get the error message "Type Mismatch". It runs ok if I don't try to transpose the array, but then there are too many entries in the array for the number of columns in Excel. Because the array will be a different size every time I run it, I can't have the 8,000 odd dimension as the vertical dimension (or can I?)
Any ideas where I'm going wrong?
Thanks...