Not the best approach, but does this help?
Sub bronkista()
Dim i As Long, x As Range, y As Range
For i = 2 To Range("D" & Rows.Count).End(3).row
Cells(i, "D").Select
Set x = Columns(4).Find(What:=Cells(i, "D").Text, After:=ActiveCell, LookIn:=xlFormulas, lookat:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlPrevious, MatchCase:=False) '.Interior.ColorIndex = 6
If Not x Is Nothing And x.Interior.ColorIndex = xlNone Then
Cells(x.row, "A").Resize(1, 4).Copy Sheets(x.Value).Range("A" & Rows.Count).End(3)(2)
Cells(x.row, "F").Copy Sheets(x.Value).Range("E" & Rows.Count).End(3)(2)
Cells(x.row, "H").Copy Sheets(x.Value).Range("F" & Rows.Count).End(3)(2)
x.Interior.ColorIndex = 6
For Each y In Range("D2:D" & x.row - 1)
If y.Value = x Then y.Interior.ColorIndex = 3
Next y
End If
Set x = Nothing
Next i
Columns(4).Interior.ColorIndex = xlNone
End Sub
Bookmarks