Try this:
Sub Split()
Dim lrow As Long
Dim cell As Range
Dim ws As Long
Dim C2 As Long, C3 As Long, C4 As Long, C5 As Long, C6 As Long
For ws = 2 To Sheets.Count
With Sheets(ws)
.Range("2:100").ClearContents
End With
Next
C2 = 2
C3 = 2
C4 = 2
C5 = 2
C6 = 2
Sheets(1).Activate
lrow = Range("A" & Rows.Count).End(xlUp).Row
For Each cell In Range("A2:A" & lrow)
If Not cell.Offset(0, 8).Value = "" Then
cell.EntireRow.Copy Destination:=Sheets(2).Range(C2 & ":" & C2)
C2 = C2 + 1
End If
If Not cell.Offset(0, 9).Value = "" Then
cell.EntireRow.Copy Destination:=Sheets(3).Range(C3 & ":" & C3)
C3 = C3 + 1
End If
If Not cell.Offset(0, 2).Value = "" Then
cell.EntireRow.Copy Destination:=Sheets(4).Range(C4 & ":" & C4)
C4 = C4 + 1
End If
If Not cell.Offset(0, 2).Value = "" And Not cell.Offset(0, 3).Value = "" Then
cell.EntireRow.Copy Destination:=Sheets(5).Range(C5 & ":" & C5)
C5 = C5 + 1
End If
If Not cell.Offset(0, 3).Value = "" Then
cell.EntireRow.Copy Destination:=Sheets(6).Range(C6 & ":" & C6)
C6 = C6 + 1
End If
Next
End Sub
Bookmarks