Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Public Sub test()
  2. Const endCount As Long = 1029
  3. Dim arr(), i As Long, rowCounter As Long
  4. ReDim arr(0 To (4 * endCount) - 1)
  5.  
  6. For i = 0 To endCount - 1
  7. arr(rowCounter) = 4
  8. arr(rowCounter + 1) = 9
  9. arr(rowCounter + 2) = 12
  10. arr(rowCounter + 3) = 15
  11. rowCounter = rowCounter + 4
  12. Next i
  13. ActiveSheet.Cells(2, 1).Resize(UBound(arr) + 1, 1) = Application.WorksheetFunction.Transpose(arr)
  14. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement