Thread: [Solved] Select Red text and Delete
View Single Post
 
Old 02-16-2017, 01:54 PM
Souriane Souriane is offline Windows 7 64bit Office 2013
Advanced Beginner
 
Join Date: Feb 2017
Location: Quebec, Canada
Posts: 82
Souriane is on a distinguished road
Default

Hi!

Try this :

Code:
Sub ReplaceRed()
'
    With Selection.Find
       .ClearFormatting
       .Font.Color = wdColorRed
       .Replacement.ClearFormatting
       .Text = ""
       .Replacement.Text = ""
       .Forward = True
       .Wrap = wdFindContinue
       .Format = True
 
    End With
    Selection.Find.Execute Replace:=wdReplaceAll
    Selection.Find.ClearFormatting
    
End Sub
Souriane
Reply With Quote