I want to write code so that if a word in a variable in the vba behind word
is equal to a word in the word document, it changes that word in the document
to bold.
How would i do that?

Re: search for word in word doc by Alex

Alex
Mon Feb 21 12:12:13 CST 2005

With ActiveDocument.Range.Find
.Text = "My Text"
.Replacement.Font.Bold = True
.Execute Replace:=wdReplaceAll
End With


--
Please reply to NG only. This email is not monitored.
Alex.


"sarah" <sarah@discussions.microsoft.com> wrote in message
news:ECBBD3B2-03A7-4342-BD79-F4147D9598E4@microsoft.com...
>I want to write code so that if a word in a variable in the vba behind word
> is equal to a word in the word document, it changes that word in the
> document
> to bold.
> How would i do that?