Hey guys,
I'm trying to dodge making cycles to fill up my array, so i was hoping to just do this:
with the select i can see that the range is definitely set correct and picks up all the data that i want, but its selecting columns 3,4,6 and when array is made i end up with only columns 3 and 4 in it.
What am i doing wrong?
I'm trying to dodge making cycles to fill up my array, so i was hoping to just do this:
Code:
lastRow = Cells.Find(what:="*", searchorder:=xlByRows, searchdirection:=xlPrevious).Row
Set bigRange = Application.Union(Range(Cells(2, 3), Cells(lastRow, 3)), Range(Cells(2, 4), Cells(lastRow, 4)), Range(Cells(2, 6), Cells(lastRow, 6)))
bigRange.Select
allDisposalsArray() = bigRange
with the select i can see that the range is definitely set correct and picks up all the data that i want, but its selecting columns 3,4,6 and when array is made i end up with only columns 3 and 4 in it.
What am i doing wrong?