Can I set text to a string, and then Find and Replace within the string variable? Ed
E Ed Mar 1, 2007 #1 Can I set text to a string, and then Find and Replace within the string variable? Ed
H Helmut Weber Mar 1, 2007 #2 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"
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 Mar 1, 2007 #3 Hi, Helmut. The Replace function does it! (Don't know why I couldn't think of that!!) Thank you. Ed