Stephen_IV
Well-known Member
- Joined
- Mar 17, 2003
- Messages
- 1,125
- Office Version
-
- 365
- 2019
- Platform
-
- Windows
Good evening,
I am looking to copy the array in a row x times. I can get the array to work but how do i expand it if I wanted the array lets say 10 time?
Thanks in advance!
This is the idea!
I am looking to copy the array in a row x times. I can get the array to work but how do i expand it if I wanted the array lets say 10 time?
Thanks in advance!
VBA Code:
Sub Copyit()
Dim arr As Variant
arr = Array("Al", "Ant", "Mike", "Don", "Ang", "Tom")
For i = LBound(arr) To UBound(arr)
Cells(2, i + 1) = arr(i)
Next
End Sub
This is the idea!
|