Conditional formatting?

  • Thread starter Thread starter G Lam
  • Start date Start date
G

G Lam

Hi, I want to format a sheet to show on each every 5 rows to a different
color, i.e. R5, R10,R15.....,R150,R155 all in yellow and the rest are in
normal white.
How can I do that?
Thank you.
GL
 
try this as the formula in conditional format - result will be zer
every 5th row

=MOD(ROW(),5)=
 
Hi GL,

Select the region you want this applied to (possibly the entire sheet in
your case) and then go to Format | Conditional Formatting... | select
"Formula Is" and then put for the formula: =MOD(ROW(), 5)=0

Then click the "Format..." button and select yellow color under the Pattern
tab.

I can show you how to do it in VBA if you want, but this is probably easier.

-Erik
 
Euane and Erik,

I did write the openbook event in VBA to get the same result, but this is a
lot easer and faster.
Thank you.

GL
 

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