Or use Format Conditional formatting:
Formula IS; =MOD(ROW(),2)=0 ; set colour
Formula IS: =MOD(ROW(),2)=1; set another colour
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email
"MrsMrfy" <(E-Mail Removed)> wrote in message
news:25f380df-2104-45d5-b346-(E-Mail Removed)...
> Help please.
>
> I want to make it easier to use a large spreadsheet where two rows are
> used for each record. Filling in the background color of every second
> row prevents mistakes when entering data. I want to color only the
> used range, not the entire row.
>
> I recorded a macro and got the following:
> TheRange.Activate
> With Selection.Interior
> .ColorIndex = 36
> .Pattern = xlSolid
> End With
>
> I really appreciate the help.