J
JLenihan
I am working with this macro to have it look through a document for all
italic text and wraps it with <I> and <I*>. If I run it as is, it doesn't do
anything so I am surious what code I put in the find area?
Any help is appreciated
Jerry
Sub ReplItalic()
'
' Replace italic text
' '
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = "<I>^&<I*>"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
italic text and wraps it with <I> and <I*>. If I run it as is, it doesn't do
anything so I am surious what code I put in the find area?
Any help is appreciated
Jerry
Sub ReplItalic()
'
' Replace italic text
' '
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = ""
.Replacement.Text = "<I>^&<I*>"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub