Hello,
La solution de Lola est bien évidemment la plus simple (et, Lola, te fait
gagner des points sur ton permis AMIS :)).
Si tu tiens absolument à VBA, ou si tu y es obligé :
Sub Macro2()
Selection.WholeStory
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "^s"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
AB
Post by LolaPost by Michel41Bonsoir
Comment rechercher avec VBA la position dans un texte word d'un
espace insécable (CTRL+Maj+espace) pour
le supprimer ?
Merci
@+.M41
Bonjour Michel,
Ne parviendrais-tu pas plus simplement au résultat souhaité en
utilisant "rechercher-remplacer" (Ctrl+H) ?
Cordialement,
--
Ich bin die fesche Lola,
der Liebling der Saison.