If you have a string s, you could use:s = Replace(s, vbCrLf, vbNullString)or perhapss = Replace(s, vbCr, vbNullString)depending on your source text.vbNullString is the same as “”.