Use a conditional formatting with two conditions, one condition with formula ISEVEN(ROW()) applying a style with one color, and a second condition with ISODD(ROW()) applying a style with another color. Obviously does not adapt to hidden rows, only the row number is considered.