Bonjour à tous,
Une p'tite macro de ma pomme. Cliquer sur le bouton Hop !
Le code dans le module associé à Feuil1:
Sub EnGras()
Const Mot = "heureux", RespecterCasse = True, Plage = "b1:c999"
Dim xrg As Range, xcell As Range, TailMot&, casse, v, n&, deb&
TailMot = Len(Mot): casse = IIf(RespecterCasse, vbBinaryCompare, vbTextCompare)
On Error Resume Next
Set xrg = Range(Plage).SpecialCells(xlCellTypeConstants, xlTextValues)
If xrg Is Nothing Then Exit Sub
Application.ScreenUpdating = False
For Each xcell In xrg
v = xcell.Value: deb = 1
Do
n = InStr(deb, v, Mot, casse)
If n > 0 Then xcell.Characters(Start:=n, Length:=TailMot).Font.Bold = True: deb = n + TailMot
Loop Until n = 0 Or deb > Len(v)
Next xcell
End Sub