Add Fill Color to Row
let rownumber is the number of the row which you want to colour
with range(cells(rownumber,1),cells(rownumber,8)) '1 is col A, 8 is col H
.Interior.ColorIndex = 3
.Font.ColorIndex = 2 ' sets font to white (visibility)
end with
etc etc
or you can use rows(rownumber).interior.colorindex
--
Allllen
"RSteph" wrote:
I've got a Macro that runs through all the rows on my page, and removes in
rows where the check value is between 0 and -5. Any row that has a check
value greater than -5 (technically less than) I want it to make the row from
column A to H Red in the background. So that the user will know to look at
that row when done.
How would I go about changing the fill color value for a row of cells?
|