A
Ashish Sharma
With ActiveDocument.Content.Find
.ClearFormatting
.Replacement.ClearFormatting
.MatchWholeWord = True
.Execute FindText:="Inc aa", _
ReplaceWith:="incorporated", Replace:=wdReplaceAll
End With
if my document contains below line of code
inc aa for the inc aabcde [/QUOTE]and incart the inc aa
the above code will replace inc aabcde also
is this a bug in ms word
.ClearFormatting
.Replacement.ClearFormatting
.MatchWholeWord = True
.Execute FindText:="Inc aa", _
ReplaceWith:="incorporated", Replace:=wdReplaceAll
End With
if my document contains below line of code
inc aa for the inc aabcde [/QUOTE]and incart the inc aa
the above code will replace inc aabcde also
is this a bug in ms word