Famille de logiciels de traitement de texte Microsoft pour la création de documents web, d’e-mails et d’impressions.
Vous m'avez mis sur la bonne piste avec le Rechercher/remplacer
Voici la macro :
Sub Tel_3_3_4()
Dim doc As Document
Set doc = ActiveDocument
Selection.HomeKey
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "(Tél): ?([0-9]{3})? ([0-9]{3})-([0-9]{4})"
.Replacement.Text = "\1. \2-\3-\4"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub