DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Mukerrer()
Cells.Interior.ColorIndex = xlNone
For i = 4 To [a65536].End(3).Row
If WorksheetFunction.CountIf(Range("a" & i & ":a60"), Cells(i, 1)) > 1 Then
Set f = Columns(1).Find(Cells(i, 1))
Set g = Range("a" & i + 1 & ":a60").Find(Cells(i, 1))
If Cells(g.Row, "d") - Cells(f.Row, "e") = 5 Then
Range(Cells(g.Row, "a"), Cells(g.Row, "e")).Interior.ColorIndex = 6
Range(Cells(f.Row, "a"), Cells(f.Row, "e")).Interior.ColorIndex = 6
End If
End If
If Cells(g.Row, "e") = "" And Cells(f.Row, "e") = "" Then
Range(Cells(g.Row, "a"), Cells(g.Row, "e")).Interior.ColorIndex = 3
Range(Cells(f.Row, "a"), Cells(f.Row, "e")).Interior.ColorIndex = 3
End If
Next
End Sub