How do you write the contents of a collection as a range instead of outputting cell by cell? I would like to write all 50 values with one command,
unlike below. Thanks.
unlike below. Thanks.
Code:
Dim mycol As Collection: Set mycol = New Collection
' fill the collection
For x = 1 To 50
mycol.Add (x)
Next x
' output to sheet one at a time
For x = 1 To 50
Sheets("sheet1").Cells(x, 4) = mycol(x)
Next x