If I am reading it correctly try the code below on a copy of your data
Sub test()
Application.ScreenUpdating = False
Dim i As Long, LstRw As Long, LstCo As Long
With Sheets("Sheet3")
LstCo = Cells.Find(What:="*", SearchOrder:=xlColumns, SearchDirection:=xlPrevious, LookIn:=xlValues).Column + 1
LstRw = .Cells.Find(What:="*", SearchOrder:=xlRows, SearchDirection:=xlPrevious, LookIn:=xlValues).Row
.Columns(1).Insert
With .Range("b1:b" & LstRw)
With .Columns(1).Offset(, -1)
For i = 1 To LstRw Step 50
.Cells(i, 1).Value = "a"
Next
End With
End With
With .Range(Cells(1, 1), Cells(LstRw, LstCo))
.Sort key1:=.Cells(1), order1:=1, Header:=xlNo
End With
With .Columns(1)
.SpecialCells(2, 2).EntireRow.Delete
.Delete
End With
End With
Application.ScreenUpdating = True
End Sub
Bookmarks