Hi KjBox,
Oops I forgot to edit it to the last revision I used:
Code
Option Explicit
Sub Color_Row()
Dim LastRow As Long
Dim ColorFlag As Boolean
Dim I As Long
LastRow = Range("A" & Rows.Count).End(xlUp).Row
ColorFlag = False
For I = 2 To LastRow
If (Cells(I, "A") <> Cells(I - 1, "A")) Then ColorFlag = Not (ColorFlag)
If (ColorFlag) Then
With Rows(I).Interior
.ColorIndex = Application.RandBetween(1, 56)
.Pattern = xlSolid
.PatternColorIndex = xlAutomatic
End With
End If
Next I
End Sub
Display More
Kind regards,
Mavlon