How To Fill 2D Arrays Easily
Dave Peterson wrote:
I think arrVer is still two dimensions:
arrHOR = Range("a1:f1").Value
fills the variant with a 1 dimensional array
I think "1 dimensional" was a typo; intended "2 dimensional"
Alan Beban
But if the range is small (or you're running xl2002+), then this gave me a one
dimensional array.
With Application
arrHOR = .Transpose(.Transpose(Range("a1:f1").Value))
End With
|