HI
Try this if column i as x
Sub TransferX()
Dim sh2 As Worksheet
Dim i As Double
Dim lastrow As Double
Set sh2 = Sheets("Sheet2")
lastrow = Cells(Rows.Count, 9).End(xlUp).Row
For i = 6 To lastrow
If Cells(i, 9).Value = "x" Then
lastrow = sh2.Cells(Cells.Rows.Count, 1).End(xlUp).Row
Rows(1).Resize(6).EntireRow.Copy Destination:=sh2.Rows(1)
Rows(i).EntireRow.Copy Destination:=sh2.Cells(lastrow + 1, 1)
End If
Next i
End Sub