greenculture
New Member
- Joined
- Dec 7, 2013
- Messages
- 26
this code change the red font color to green font color.... it is working code but getting error msg can you solve this
HTML:
Public Sub FontColorInCellPart()
Dim c As Range
Dim i As Integer
For Each cell In ActiveSheet.UsedRange
For i = 1 To Len(cell)
If cell.Characters(i, 1).Font.color = RGB(255, 0, 0) Then
cell.Characters(i, 1).Font.color = RGB(0, 255, 0)
End If
Next i
Next cell
End Sub