Hi,
I have a very basic question on writing results from an input Array to an output location..
Currently I have the macro below which reads data into an array from sheet2 and outputs the first column of the array into sheet3:
[VBA]
Sub Array_example()
Dim Rawdata
Rawdata = Worksheets("Sheet1").Range("a1:d200")
Worksheets("Sheet3").Range("a5:A205").Value = Rawdata
End Sub
[/VBA]
I would like to amend the code so that it outputs each column of the input array interatively into the same place: ie ("Sheet3").Range("a5:A205").
So I want to do the first column (a1:a200) first, then the second column (b1:b200) and then the third etc.
I know there is various ways of doing this but what would the simpliest be without re-writing/making fewest changes to the existing code? I'm assuming I just need tp add some kind of "for each i" in array statement?
Thanks,
Lucas