tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
In Sheet1 I have 10 columns of data.
I want to extract only the second column, so have used this:
With only a few rows of data, it works as expected.
However when I have a few thousand rows, it fails with this message:
Is this a well known problem with lots of data?
Thanks
I want to extract only the second column, so have used this:
Code:
Dim TotalArray() As Variant
TotalArray() = Sheet1.Cells(1, 1).CurrentRegion.Value
Dim NewArray() As Variant
NewArray = Application.Index(TotalArray(), 0, 2)
With only a few rows of data, it works as expected.
However when I have a few thousand rows, it fails with this message:
Code:
Run-time error 13
Type mismatch
Is this a well known problem with lots of data?
Thanks