liverpool
07-20-2009, 07:11 AM
Hi
I recoreded the following macro to clear the formatting of a piece of searched tag text. How do i get the macro to loop so it finds all occurences in the whole document.
Selection.Find.ClearFormatting
With Selection.Find
.Text = "\<\cf cstyle?*\>"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchByte = False
.CorrectHangulEndings = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchFuzzy = False
.MatchWildcards = True
End With
Selection.Find.Execute
Selection.ClearFormatting
Selection.ClearFormatting
Thanks
I recoreded the following macro to clear the formatting of a piece of searched tag text. How do i get the macro to loop so it finds all occurences in the whole document.
Selection.Find.ClearFormatting
With Selection.Find
.Text = "\<\cf cstyle?*\>"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchByte = False
.CorrectHangulEndings = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchFuzzy = False
.MatchWildcards = True
End With
Selection.Find.Execute
Selection.ClearFormatting
Selection.ClearFormatting
Thanks