format sheet with color

B

Brent

How can i assign a macro to change the color of the whole sheet based on a
value?
ex if b1 > 295 change the sheet to red?
Thanks
 
B

Bob Phillips

If Range("B1").value > 295 Then

Cells.Interior.Colorindex = 2
End If

or you could use conditional formatting, but it might be quite an overhead.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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