Jyotirmaya
Board Regular
- Joined
- Dec 2, 2015
- Messages
- 216
- Office Version
- 2019
- Platform
- Windows
I am using the following code to make all the negative value to positive
Sub test()
For Each Cell In Range("A1:Z10")
If Cell.Value < 0 Then
Cell.Value = Abs(Cell.Value)
End If
Next Cell
End Sub
I want that the converted negative values should be of font color RED.
what should be the tweak for the code ??
Sub test()
For Each Cell In Range("A1:Z10")
If Cell.Value < 0 Then
Cell.Value = Abs(Cell.Value)
End If
Next Cell
End Sub
I want that the converted negative values should be of font color RED.
what should be the tweak for the code ??