A program that I am writing requires that i put two different columns into a two dimensional array. the code line that gives the problem is:
daydata = Application.Union(Range("a1:a" & dayrows), Range(datatype$ & "1:" & datatype$ & dayrows))
The array has been previously ReDimed as daydata(dayrows, 2) and Option Base 1 is true
When the problem line runs it assigns the first range just fine, but changes the array into a one dimensional array.
dayrows = 1940
datatype$ = "f"
I can't really find anything online. Any help would be great. Thanks.
If more code is necessary i can provide it.
daydata = Application.Union(Range("a1:a" & dayrows), Range(datatype$ & "1:" & datatype$ & dayrows))
The array has been previously ReDimed as daydata(dayrows, 2) and Option Base 1 is true
When the problem line runs it assigns the first range just fine, but changes the array into a one dimensional array.
dayrows = 1940
datatype$ = "f"
I can't really find anything online. Any help would be great. Thanks.
If more code is necessary i can provide it.