Pozamieniajmy kolory obydwu fragmentów
Dim wiersz As Long
Dim ile As Byte
For wiersz = 1 To Cells(Rows.Count, 1).End(xlUp).Row
ile = InStr(1, Cells(wiersz, 1), "-")
If ile > 1 Then
Cells(wiersz, 1).Characters(Start:=1, Length:=ile - 1).Font.ColorIndex = 3
Cells(wiersz, 1).Characters(Start:=ile + 1).Font.ColorIndex = 5
End If
Next wiersz
Pozdrawiam |