A
airhockeycanada
Good day everyone!
I have created some macros in Microsoft Word v10 that search out certain
items in a document and adjust them in various ways.
Here is part of one of my macros as an example:
Selection.Find.ClearFormatting
With Selection.Find
.Text = "s0p"
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
The macro looks for the text 's0p' and removes it. The document contains
many of these and we need to remove them all. How do I have this loop to
continually search for new occurrences of 's0p' until no more remain and the
macro ends?
Thank you VERY much for any help you can offer.
I have created some macros in Microsoft Word v10 that search out certain
items in a document and adjust them in various ways.
Here is part of one of my macros as an example:
Selection.Find.ClearFormatting
With Selection.Find
.Text = "s0p"
.Replacement.Text = " "
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
The macro looks for the text 's0p' and removes it. The document contains
many of these and we need to remove them all. How do I have this loop to
continually search for new occurrences of 's0p' until no more remain and the
macro ends?
Thank you VERY much for any help you can offer.