Thread: [Solved] Replace a "==>" with symbol
View Single Post
 
Old 07-01-2015, 01:47 AM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Use the following instead
Code:
Sub Replace_Symbol()
Dim orng As Range
    Set orng = ActiveDocument.Range
    With orng.Find
        Do While .Execute("==>")
            orng.Font.name = "Wingdings"
            orng.Text = Chr(232)
            orng.Collapse 0
        Loop
    End With
lbl_Exit:
    Set orng = Nothing
    Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote