M
mlynch
Can anyone help me with this problem ?
Sub colorvisiblerows()
x = Range("a" & Rows.Count).End(xlUp)
Rows("1:" & x).Interior.ColorIndex = xlNone
For i = 2 To x Step 2
Cells(i, 1).SpecialCells(xlCellTypeVisible) _
.EntireRow.Interior.ColorIndex = 6
Next i
End Sub
Don Guillett wrote
I was interested in this routine as well, but keep getting a 'Type
mismatch' error in this line:
Rows("1:" & x).Interior.ColorIndex = xlNone