auto fill

  • Thread starter Thread starter Mostro di Biscotti
  • Start date Start date
M

Mostro di Biscotti

I have a spreadsheet with 300 rows, and I would like to color fill every
other row. Can that be done in an automatic way of some sort?
 
You can do it with a formula and conditional formatting. The formulas are
here: http://www.cpearson.com/excel/banding.htm. All you have to do is
select the rows and Format > Conditional Formatting. Condition 1 = Formula
is... enter the appropriate formula, then set up the formatting.
 
Sub colorrow()
For i = 1 To 300 Step 2
Rows(i).Interior.ColorIndex = 6
Next i
End Sub
 
One more option:

Select your range and Format|autoformat
(You may find a pretty one you like!)

You'll have to redo if you insert/delete rows, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top