S
Steved
Hello from Steved
The below macro works exactly as I require however I would like it to find
every instance on the same page and delete, at the moment it is only deleting
only one.
I have up to 20 per page what is reqiured please to make the below macro
carry out this function
Sub FindReplaceOnePage()
Dim rng As Word.Range
Set rng = ActiveDocument.Bookmarks("\Page").Range
With rng.Find
.Text = "R [0-9]{1,}:[0-9]{1,}:[0-9]"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
Selection.Find.Execute
Selection.Delete Unit:=wdCharacter, Count:=1
End With
End Sub
Thankyou
The below macro works exactly as I require however I would like it to find
every instance on the same page and delete, at the moment it is only deleting
only one.
I have up to 20 per page what is reqiured please to make the below macro
carry out this function
Sub FindReplaceOnePage()
Dim rng As Word.Range
Set rng = ActiveDocument.Bookmarks("\Page").Range
With rng.Find
.Text = "R [0-9]{1,}:[0-9]{1,}:[0-9]"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
Selection.Find.Execute
Selection.Delete Unit:=wdCharacter, Count:=1
End With
End Sub
Thankyou