Thread: [Solved] Replace a "==>" with symbol
View Single Post
 
Old 07-01-2015, 01:20 AM
srinidhi.mv88 srinidhi.mv88 is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Apr 2015
Posts: 11
srinidhi.mv88 is on a distinguished road
Lightbulb Replace a "==>" with symbol

Hello all,

I had written a macro to find and replace "==>" to Unbenannt.JPG automatically. But its not changing this to symbol what i required.

Here is the code

Sub Replace_Symbol()
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "==>"
.Replacement.Text = "==>"
.Replacement.Style = ActiveDocument.Styles("Emphasis")
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = True
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub

Please help me to achieve it.

Thanks a lot.

Regards,
Srinidhi
Reply With Quote