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)
 
Top