hi tngengineer, welcome to Excelforum.
Transpose function you use does have a limitation of 65536 items. Unfortunately there is no trick to overcome this limitation and still use Transpose function.
The solution I can suggest would require pretty much changes to the code. As I see in you code you create one-dimensional array with values and then use transpose it to make it vertical. You can create that array vertical from the start (two-dimensional) and avoid Transpose.
Example (simplified) to show what I mean:
Sub example()
Dim arr(1 To 100), i As Long
For i = 1 To 100
arr(i) = i
Next
Range("a1:a100") = Application.Transpose(arr)
End Sub
Sub example_no_transpose()
Dim arr(1 To 100, 1 To 1), i As Long
For i = 1 To 100
arr(i, 1) = i
Next
Range("a1:a100") = arr
End Sub
Bookmarks