Your code appears to work for me - but perhaps your requirements are
different from Veronica's.
--
Enjoy,
Tony
www.WordArticles.com
Hello people
I tried that suggested by tony, but the macros continue to check the
same word over again and again. I would like some expert to look over
this and help us out.
The macros I tried was
Sub Macro1()
'
' Macro1 Macro
'
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "defined"
.Replacement.Text = "*defined"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
MsgBox ("change"), 54
Selection.Find.Execute Replace:=wdReplaceAll
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
End Sub- Hide quoted text -
- Show quoted text -