Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I had got some help and recived code that checked for a
blank column and if it found the column it would color it, I tried modifying the code to find a blank cell in a row and then format that row Here is the Code Set lastrow = Cells(2, Rows.Count).End(xlTopToBottom) Set Rng = Range(Cells(2, 5), lastrow) For Each oCell In Rng If oCell < 0 Then oCell.RowHeight = 12.57 Else oCell.RowHeight = 1 oCell.EntireRow.Interior.ColorIndex = 15 End If Next oCell if I set the range to range("b5:B200) then every row after the last row of data is resized, I was trying to set the last row to find the last row with data so it would stop there but it failed Any Ideas THanks Nigel |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
conditional formatting:highlight row based on blank or non-blank c | Excel Worksheet Functions | |||
Conditional Formatting - Blank or Zero | Excel Discussion (Misc queries) | |||
put zero in blank cell using conditional formatting | Excel Worksheet Functions | |||
Conditional formatting - Blank | Excel Discussion (Misc queries) | |||
conditional formatting:highlight row based on blank or non-blank c | Excel Discussion (Misc queries) |