citychap26
Programmer
Hi All,
Want to copy from an array to excel worksheet. Is this the best way:
Cheers
SK
Want to copy from an array to excel worksheet. Is this the best way:
Code:
Sub test()
Dim vARRAY(10000) As Variant
Dim i As Integer
Dim ws As Worksheets
For i = 0 To 9999
vARRAY(i) = i
Next
Worksheets("Sheet1").Range("A1", Range("A1").Offset(i, 0)).Value = Application.Transpose(vARRAY)
End Sub
Cheers
SK