Find/Replace within a string?

E

Ed

Can I set text to a string, and then Find and Replace within the string
variable?

Ed
 
H

Helmut Weber

Hi Ed,

my former message seems to be lost.

ActiveDocument.Range.Text = _
Replace(ActiveDocument.Range.Text, "x", "X", , , vbBinaryCompare)

HTH

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 
E

Ed

Hi, Helmut. The Replace function does it! (Don't know why I couldn't
think of that!!) Thank you.
Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top