Use this
Sub abc()
Application.ScreenUpdating = False
Range("A1").Select
With ActiveSheet
LastCol = .Cells(1, .Columns.Count).End(xlToLeft).Column
End With
For i = 3 To LastCol - 1
With ActiveSheet
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
End With
With ActiveSheet
LastRowN = .Cells(.Rows.Count, i).End(xlUp).Row
End With
Cells(LastRow + 2, 1).Select
Range(Cells(1, i), Cells(LastRowN, i + 1)).Select
Selection.Cut
Cells(LastRow + 2, 1).Select
ActiveSheet.Paste
Range("A1").Select
Application.ScreenUpdating = True
i = i + 1
Next i
End Sub
Bookmarks