setting color for range of cells blanks out gridlines

J

Judy

I'm using the following to color alternating groups of rows

stripe = Not stripe ' toggle to stripe the set of rows
Set myrange = Range(Cells(rTop, 1), Cells(rEnd, 7))
With myrange
.Interior.Color = IIf(stripe, LightYellow, PlainWhite)
end with

It works for the color effect, but results in blotting out the gridlines for
the
individual cells. I have gridlines visible in Excel Options, and gridlines
are still visible
outside the range-groups that I colored.

I've played with borders but can't seem to see a real solution. Do I have to
treat the cells individually (with for each..next -- which seems very
tedious )
or is there some other (preferred) technique?

Thanks.
 

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

Top