Sub Transpose()
Dim ws As Worksheet
Dim icol As Long
Dim irow As Long
Dim a As Integer
Dim niterations As Integer
Dim number As Integer
Set ws = Sheets("Sheet1")
icol = ws.Columns.Count
irow = ws.Columns.Count
N = 2500
niterations = (irow / N)
For i = 1 To niterations
Sheets.Add(after:=Worksheets(Worksheets.Count)).Name = i
ws.Cells("((i-1)*N+1))i*N+1)", 1).Copy
Sheets(i).Cells(1, 1).PasteSpecial Transpose:=True
Next
End Sub
I keep getting a type mismatch error, anyone has any idea why?