Hi Graham,
Thanks for the quick response.
Surely the phrase "the quick brown fox" contains the word "brown."
It looked to me as if Shauna's code is meant to replace the word "brown"
with "pink."
I still don't get the point.
Regards,
Alan Stancliff
Graham Mayor wrote:
> If you are taking the code literally, then of course it won't do anything as
> the quick brown fox text doesn't contain the word 'brown'. Change the word
> 'brown' to 'fox'
> i.e.
> .Text = "brown"
> to
> .Text = "fox"
>
> and the macro should replace each occurrence of 'fox' in the second
> paragraph i.e.
>
> ActiveDocument.Paragraphs(2).Range
>