A
aquarius79
Hello,
I wish to create a macro that will replace non only a word with anothe
but also a font color with another.
eg. I want to replace the word "apple" in black with the word "pear" i
red.
I tried to record this but the changes in font color/type/size won'
work. As I don't know anything at programming, could anyone tell me ho
I can change this macro so that the word "pear" appears in red ?
Sub apple()
'
' apple Macro
' Macro enregistrée le 19/02/2004 par Violaine
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "apple"
.Replacement.Text = "pear"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Thanks
I wish to create a macro that will replace non only a word with anothe
but also a font color with another.
eg. I want to replace the word "apple" in black with the word "pear" i
red.
I tried to record this but the changes in font color/type/size won'
work. As I don't know anything at programming, could anyone tell me ho
I can change this macro so that the word "pear" appears in red ?
Sub apple()
'
' apple Macro
' Macro enregistrée le 19/02/2004 par Violaine
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "apple"
.Replacement.Text = "pear"
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
Thanks