Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have entered the following and the row will not change to default color when $A(whatever) is not equal to "Weekly Subtotal". It does change to orange when "Weekly Subtotal" is entered into a cell but wont change back to excel default color if cell is changed back to "". What am i doing wrong! Private Sub Workbook_Open() Dim cell As Range, rng As Range Dim Sh As Worksheet For Each Sh In ThisWorkbook.Worksheets For Each cell In Sh.Range("AL6:AL2000") If cell.Value = "Weekly Subtotal" Then Set rng = Intersect(Sh.Range("A8:J2000"), _ cell.EntireRow) rng.Interior.ColorIndex = 45 If cell.Value = "" Then Set rng = Intersect(Sh.Range("A8:J2000"), _ cell.EntireRow) rng.Interior.ColorIndex = xlNone End If End If Next Next -- parteegolfer ------------------------------------------------------------------------ parteegolfer's Profile: http://www.excelforum.com/member.php...o&userid=31951 View this thread: http://www.excelforum.com/showthread...hreadid=517557 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can't format cell color/text color in Office Excel 2003 in files . | Excel Discussion (Misc queries) | |||
My fill color and font color do not work in Excel Std Edition 2003 | Excel Discussion (Misc queries) | |||
Excel 2003 will not display color fonts or color fill cells | Excel Worksheet Functions | |||
My excel 2003 wont let me fill cells with color or color the tabs. | New Users to Excel | |||
Browse Forms Controls and change TextBox color based on cell color | Excel Programming |