View Single Post
 
Old 02-19-2025, 07:48 AM
Ddadoo57 Ddadoo57 is offline Windows 11 Office 2021
Advanced Beginner
 
Join Date: Feb 2023
Posts: 94
Ddadoo57 is on a distinguished road
Default

... with just this code, the replacement gives “Hi ...H ello!”

So group captures can no longer be used in my code.

Code:
With texte.Find
    .Text = "…([A-Za-zÀ-ÖØ-öø-ÿ0-9])"
    .Replacement.Text = "… \1"
    .MatchWildcards = True: .Wrap = wdFindContinue: .Execute Replace:=wdReplaceAll
End With
Reply With Quote