A family of Microsoft word processing software products for creating web, email, and print documents.
Yes. The duplicated Find setup can be removed and the code can be simplified while keeping the same behavior:
Sub Time_Spacing_Correction()
Dim rng As Range
Set rng = ActiveDocument.Content
With rng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "[0-9]{1,}:[0-9]{1,} [A-Z]{1,}"
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = True
.MatchWholeWord = False
.MatchWildcards = True
End With
Do While rng.Find.Execute
rng.Select
Selection.MoveUp Unit:=wdLine, Count:=2
Selection.Delete Unit:=wdCharacter, Count:=3
Selection.MoveDown Unit:=wdLine, Count:=1
rng.Collapse wdCollapseEnd
Loop
End Sub
The Find configuration is defined once, then reused in the loop with rng.Find.Execute.
References: