Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a quick way of outputting the contents of an array to a worksheet
without having to iterate through all the rows and columns? I am think of the opposite of : Array = Range("A1").CurrentRegion |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am think of the opposite of :
Array = Range("A1").CurrentRegion exactly: For a 2D array: rw = Ubound(array,1) - lbound(array,1) + 1 col = Ubound(array,2) - lbound(array,2) + 1 range("A1").Resize(rw,col).Value = array if it is a 1D array col = Ubound(array,1) - lbound(array,1) + 1 Range("A1").Resize(1,col).Value = Array or to put it horizontal rw = Ubound(array,1) - lbound(array,1) + 1 Range("A1").Resize(rw,1).Value = Application.Transpose(Array) In xl2000 and earlier, use of transpose restrict the number of array elements to 5461. -- Regards, Tom Ogilvy "Paul W Smith" wrote: Is there a quick way of outputting the contents of an array to a worksheet without having to iterate through all the rows and columns? I am think of the opposite of : Array = Range("A1").CurrentRegion |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Nothing I want to mark this thread. Thanks guys.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Two worksheets, one array | Excel Discussion (Misc queries) | |||
Loop through array of worksheets | Excel Programming | |||
printing an array of worksheets | Excel Discussion (Misc queries) | |||
For....Next- Array of worksheets. | Excel Programming | |||
array worksheets | Excel Programming |