tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,924
- Office Version
- 365
- 2019
- Platform
- Windows
If my data has two columns in columns A and B but I just want column A, I can write this:
What can I do if I want to populate MyArray not from cell A1 but from cell A2?
I don't want to have to loop.
Thanks
Code:
MyArray() = Sheet1.Cells(1, 1).CurrentRegion.Resize(, 1).Value
What can I do if I want to populate MyArray not from cell A1 but from cell A2?
I don't want to have to loop.
Thanks