Put 1D array into column

C

Charlie

I can move a 2D array into a range, no problem. I can move a 1D array into
cells across a row, no problem. But is there a syntax that will allow me to
move a 1D array into cells down a row?
 
C

Charlie

That's the ticket! It converts the 1D array to 2D in the column direction,
e.g.

Dim a(3) '(Base 1)
a = Application.WorksheetFunction.Transpose(a)

"a" becomes a(1,1), a(2,1), a(3,1)

very useful! Thanks.
 
A

Alan Beban

Charlie said:
That's the ticket! It converts the 1D array to 2D in the column direction,
e.g.

Dim a(3) '(Base 1)
a = Application.WorksheetFunction.Transpose(a)

"a" becomes a(1,1), a(2,1), a(3,1)

very useful! Thanks.

Same result for Dim a(2) '(Base 0)

Alan Beban
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top