Hi vbaNOOB,
no regexp required.
Regexp is meaningless anyway, when processing a single character.
strtmp = replace(strTmp, chr(150), "")
The question is, how did you get the chr(150) in the string at first?
When copying text containing chr(150) from a word-doc
into the VBA-editor, it is converted to chr(45).
However, using alt 0150 in the editor, you can produce a chr(150),
though it is represented by chr(45).
For a word.doc, e.g.
selection.range.text = _
replace(selection.range.text, chr(150), "")
--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
However, when copy a range of text from >Hi,