One way:
Dim CompleteArray As Variant
CompleteArray = Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, _
14, 15, 16, 17, 18, 19, 20, 21, 22, 23, _
24, 25, 26, 27, 28, 29, 30)
Range("A1:AD1").Value = CompleteArray
By making an array of arrays, CompleteArray is two dimensional rather
than a single array.
Just for illustration, take a look at
Public Sub ArrayTest()
Dim Array1 As Variant
Dim Array2 As Variant
Dim CompleteArray As Variant
Array1 = Array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
Array2 = Array(16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, _
28, 29, 30)
CompleteArray = Array(Array1, Array2)
Range("A1:O2").Value = Application.Transpose( _
Application.Transpose(CompleteArray))
End Sub
> Hi all,
>
[quoted text clipped - 20 lines]
>
> - Bas
VirtualReal@gmail.com - 15 Apr 2007 20:18 GMT
Wow! :-o
I thought, from the beginning of my work, that the maximum arguments
from an array was 29.
Mea culpa, and thanks very much!
> One way:
>
[quoted text clipped - 50 lines]
>
> > - Bas