Option Explicit
Sub test()
Dim mot_phrase$
mot_phrase = Application.InputBox("Quelle est la chaîne à mettre en évidence:", "Recherche:", , , , , , 2)
'appel de la sub
'colorier Selection , recherche , ce qu'on veut avant , ce qu'on veut apres
colorier Selection, mot_phrase, ".", ","
End Sub
Sub colorier(xplage As Range, xmot, Optional devant As String = "", Optional apres As String = "")
Dim xCell As Range, i&
If devant = "" Then devant = " "
If apres = "" Then apres = " "
Application.ScreenUpdating = False
xplage.Font.ColorIndex = xlColorIndexAutomatic
For Each xCell In Selection 'xplage
For i = 1 To Len(xCell.Text)
If Mid(devant & xCell.Text & apres, i, Len(xmot)) Like xmot Then
xCell.Characters(i - 1, Len(xmot) + 1).Font.Color = RGB(255, 0, 0)
i = i + Len(xmot)
End If
Next
Next
End Sub