Sub TE123ST()
Columns("e:e").Select
Selection.ClearContents
x = 1
Do Until Cells(x, 3) = ""
currentcell = Cells(x, 3)
If Right(currentcell, 1) = "0" Then
For i = 1 To 9
nextcell = Cells(x + i, 3)
If Val(nextcell) <> Val(currentcell) + i Then
Exit For
End If
If Val(nextcell) = Val(currentcell) + 9 Then
Range(Cells(x, 5), Cells(x + 9, 5)).Value = "abc"
Range(Cells(x, 3), Cells(x + 9, 3)).Select
With Selection.Interior
.Pattern = xlSolid
If abc = 34 Then
.PatternColorIndex = xlAutomatic
.ColorIndex = 35
abc = 35
Else
.ColorIndex = 34
abc = 34
End If
End With
End If
Next i
End If
x = x + 1
Loop
Sub Macro33()
Dim xR As Range, xH As Range, N%
[C:C].Interior.ColorIndex = 0
[E:E].ClearContents
For Each xR In Range([C1], [C65536].End(xlUp))
If Right(xR, 1) = "0" Then Set xH = xR: N = 0
If xR - xH = N Then N = N + 1 Else N = 0
If N = 10 Then
With Range(xR, xH): .Interior.ColorIndex = 34: .Offset(, 2) = "abc": End With
End If
Next
End Sub