Hi
I got this code for Rick Rothstein and I modified to fit with my requiremnt but I failed . so what I want any minus values in column E should be red font values and if the minus values return to positive then should return the color to black .
thanks
I got this code for Rick Rothstein and I modified to fit with my requiremnt but I failed . so what I want any minus values in column E should be red font values and if the minus values return to positive then should return the color to black .
VBA Code:
Sub minusvalues()
Dim LastRow As Long
LastRow = Cells(Rows.Count, "E").End(xlUp).Row
Range("E2:E" & LastRow) = Evaluate("IF(E2:E" & LastRow & "<0,RGB(255, 0, 0),E2:E" & LastRow & ")")
End Sub