View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Mangesh Mangesh is offline
external usenet poster
 
Posts: 18
Default Reading from a excel sheet to an array

something like this:

Set rng = Range("A1:A3")

For i = 1 To 3
a(i, 1) = rng(i, 1)
Next i

Range("A13").Resize(3, 2) = a


Mangesh


"Pradip Jain" wrote in message
...
i am running simulation analysis. Each simulation returns results comes in
cells b60 to b85 of sheet2. next simulation will also return its output in
the same range.

suppose i am running 10 simulations. each simulation output is basically a
10 rows by 1 column range in sheet2. this results need to go into an array
called FinalOutput which would be a 26 by 10 array. I want to read the

entire
range "b60 to b85" in sheet2 into the FinalOutput array. Basically

depending
on the simulation number, an entire column of FinalOutput array gets

created.
so simulation 1 output gets transferred to column 1 of final output array

and
so on. is there some way i can transfer an entire range into a column of

an
array.

thanks
pradip