Set the elements of an array vertically to the cells
Hi,
Tom already answered you.
I am expecting to see
10
20
30
respectively in Cells(1, 1), Cells(1, 2), Cells(1, 3)
Please note :
The first dimension of Cells is the row : Cells(Row, Column).
A 2 dimension VBA array has the row as its 1st dimension : Array(row,column)
A 1 dimension VBA array corresponds to an horizontal array (column-wise),
and that's why you have to TRANSPOSE it.
Regards,
Daniel M.
|