Thanks! Definiately an improvement. The only thing I noticed is that if a
sentence or paragraph is italic it will do each word seperately. Can it find
the beginning and ending of an italic phrase rather than the individual words?
thanks again
> Hi Jerry,
>
[quoted text clipped - 57 lines]
> > Selection.Find.Execute Replace:=wdReplaceAll
> > End Sub
Greg Maxey - 08 Jun 2005 16:53 GMT
Try:
Sub ReplItalic()
Dim oRng As Word.Range
Set oRng = ActiveDocument.Range
With oRng.Find
.ClearFormatting
.Replacement.ClearFormatting
.Font.Italic = True
.Replacement.Text = "<I>^&<I*>"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
End With
End Sub

Signature
Greg Maxey/Word MVP
See:
http://gregmaxey.mvps.org/word_tips.htm
For some helpful tips using Word.
> Thanks! Definiately an improvement. The only thing I noticed is that
> if a sentence or paragraph is italic it will do each word seperately.
[quoted text clipped - 64 lines]
>>> Selection.Find.Execute Replace:=wdReplaceAll
>>> End Sub
Helmut Weber - 08 Jun 2005 19:11 GMT
Hi J,
... and I'd suggest to clear all paragraph marks
from any formatting beforehand. Otherwise you might
run into trouble, depending on how you want to process
the output of all the replacing further on.
And take care of removing italic from the replacement
text, so that more runs of your macro don't
result in <I><I><I>some text<I*><I*><I*>
Greetings from Bavaria, Germany
Helmut Weber, MVP
"red.sys" & chr(64) & "t-online.de"
Word XP, Win 98
http://word.mvps.org/