I have some strings (file paths) that sometimes have randomly placed line breaks (CRLF) inside of them that I have to remove. How would I go about doing that?
Have a look at the Replace(..)
function.
someVariable = Replace(someVariable, vbNewLine, "")
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With