Thread: [Solved] Find & Replace Unique word
View Single Post
 
Old 05-03-2017, 04:49 AM
raghugada raghugada is offline Windows XP Office 2007
Novice
 
Join Date: Apr 2017
Posts: 21
raghugada is on a distinguished road
Default

Hello

I have attached the word file attachment with font file.

I am trying to search for a word ^mb in the given document
but its searching for this word also g§^mbZm
I am looking for exact match.

So Please give me a solution for this.

Is there a way to identify the beginning of paragraph in find replace ?

This is the macro code i have pasted below

With Selection.Find
.Text = ^mb
.Replacement.Text = test
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = True
.MatchWholeWord = False
.MatchKashida = False
.MatchDiacritics = False
.MatchAlefHamza = False
.MatchControl = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
Attached Files
File Type: zip Test Document with font.zip (55.2 KB, 13 views)