How do you load a 1D array using a 2D array in one line of code?
I tried the following:
Dim a1(5,10) as Variant
Dim a2(10) as Variant
...load a1 with values...
For x=0 to UBound(a1,2)-1
a2=a1(x)()
Next x
But it didn't work, and I would like to avoid loading a2 one element at a time. Any ideas?
I tried the following:
Dim a1(5,10) as Variant
Dim a2(10) as Variant
...load a1 with values...
For x=0 to UBound(a1,2)-1
a2=a1(x)()
Next x
But it didn't work, and I would like to avoid loading a2 one element at a time. Any ideas?