Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
one way:
Dim rCell As Range For Each rCell In Range(Cells(1, 5), Cells(Rows.Count, 5).End(xlUp)) With rCell If IsNumeric(.Value) Then _ If .Value < 0 Then _ .Offset(0, -4).Resize(1, 5).Interior.ColorIndex = 3 End With In article , "Gary Paris" wrote: I would like to Loop through my worksheet and if the value in Column 5 is negative, I would like to color all 5 cells in that particular row red also. I don't want to do this in conditional formatting, but I would like to know how to "brute force" do this in code. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
color after depending on 1st value in a cell | Excel Discussion (Misc queries) | |||
change font color depending on cell value | Excel Worksheet Functions | |||
Tab Color Changes depending on value of a cell | Excel Discussion (Misc queries) | |||
How do I get the font color to change automatically depending on | Excel Discussion (Misc queries) | |||
How do i make a cell change color depending on the value being in. | Excel Programming |