P
paolopiace
I need to sort a Range and place the sorted result into a Variant
matrix.
Then I must copy the matrix into same Excel worksheet, different area.
I did this and it comes out with the error msg #VALUE! in each cell:
Dim theMatrix() As Variant
theMatrix = Range("B2", "H7").Sort(Key1:=Columns(4),
Orientation:=xlSortRows)
While this works just fine:
Dim theMatrix() As Variant
theMatrix = Range("B2", "H7")
Help, Please!....
matrix.
Then I must copy the matrix into same Excel worksheet, different area.
I did this and it comes out with the error msg #VALUE! in each cell:
Dim theMatrix() As Variant
theMatrix = Range("B2", "H7").Sort(Key1:=Columns(4),
Orientation:=xlSortRows)
While this works just fine:
Dim theMatrix() As Variant
theMatrix = Range("B2", "H7")
Help, Please!....