With Find and Replace, I want to remove a space between a number (random) and semicolon ( ; )
E.g. 1025648950 ; to 1025648950;
However, if there is no number there, I want the space to remain. I don't know how to use wildcards properly in Word Find & Replace.
This will be going straight into VBA editor.
With Selection.Find
.Text = "[0-9] ;"
.Replacement.Text = "[0-9];"
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll

