Hey there everyone
I have a spreadsheet with data in Range B10:P97.
I am attempting to create a single array of the two ranges B10:B97 and O10:O97.
I have read this previous thread heavily
http://www.mrexcel.com/forum/excel-questions/564473-transfer-multiple-ranges-one-array-2.html
but unfortunately I am still suffering from
Run-time Error '13'
Type Mismatch
My code is
The error seems to be thrown due to the [row(10:97)] parameter. When replaced by a single row number there are no issues.
I am using Excel 2013.
Thank you very much for the help.
I have a spreadsheet with data in Range B10:P97.
I am attempting to create a single array of the two ranges B10:B97 and O10:O97.
I have read this previous thread heavily
http://www.mrexcel.com/forum/excel-questions/564473-transfer-multiple-ranges-one-array-2.html
but unfortunately I am still suffering from
Run-time Error '13'
Type Mismatch
My code is
Code:
Sub Test()
Dim vArr As Variant
vArr = Application.WorksheetFunction.Index(Cells, [row(10:97)], Array(2, 15))
End Sub
The error seems to be thrown due to the [row(10:97)] parameter. When replaced by a single row number there are no issues.
I am using Excel 2013.
Thank you very much for the help.