Hi
See how this goes.
Sub eee()
'yellow for Trial items
Set findit = Range("B:B").Find(what:="Trial", lookat:=xlPart)
If Not findit Is Nothing Then
firstadd = findit.Address
Do
findit.EntireRow.Interior.ColorIndex = 6
Set findit = Range("B:B").Find(what:="Trial", lookat:=xlPart, after:=findit)
Loop Until findit.Address = firstadd
End If
'pale yellow for Interruption
Set findit = Range("B:B").Find(what:="Interruption TQ Begins", lookat:=xlPart)
If Not findit Is Nothing Then
firstadd = findit.Address
Do
i = -1
Do
i = i + 1
findit.Offset(i, 0).EntireRow.Interior.ColorIndex = 36
Loop Until Left(findit.Offset(i, 0).Value, 17) = "Interruption ends"
Set findit = Range("B:B").Find(what:="Interruption * Begins", lookat:=xlPart, after:=findit)
Loop Until findit.Address = firstadd
End If
'red for incorrect
Set findit = Range("F:F").Find(what:="incorrect", lookat:=xlPart)
If Not findit Is Nothing Then
firstadd = findit.Address
Do
findit.Interior.ColorIndex = 3
Set findit = Range("F:F").Find(what:="incorrect", lookat:=xlPart, after:=findit)
Loop Until findit.Address = firstadd
End If
MsgBox "Done"
End Sub
rylo
Bookmarks