Sub Surbrillance3()
'patricktoulon
Dim TxT$, XceLL, X&
Application.ScreenUpdating = False
With Sheets("Feuil1")
With Feuil1.Range("M1:M100")
.Font.Color = RGB(0, 0, 0)
.Font.Bold = False
End With
TxT = .[ND_Cherche]
For Each XceLL In Feuil1.Range("M1:M100").Cells
With XceLL
If XceLL <> "" Then
X = 1
Do
X = InStr(X, UCase(.Text), UCase(TxT))
If X > 0 Then
Debug.Print "recherche dans " & XceLL.Address & " trouvé du caractère " & X & " au caractère " & X + Len(TxT)
With .Characters(Start:=X, Length:=Len(TxT)).Font
.ColorIndex = 3
.Bold = True
End With
X = X + Len(TxT)
End If
Loop While X > 0
End If
End With
Next XceLL
End With
Application.ScreenUpdating = True
End Sub