Belleke
Well-Known Member
Who can help me a bit further
I have this code
But If in Column P the value is 1 It should color the row from A to Q
If the value is not 1 then no color
I am stuck, pls help
Example included
I have this code
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
lRow = Range("P" & Rows.Count).End(xlUp).Row
Set MR = Range("P" & lRow)
For Each cell In MR
If cell.Value = "1" Then cell.Interior.ColorIndex = 43
If cell.Value = "" Then cell.Interior.ColorIndex = xlNone
Next
End Sub
If the value is not 1 then no color
I am stuck, pls help
Example included