How do you remove carriage return character in datatable

Some data in column 2 of EXCEL contain carriage return characters. How to handle this?

demo.xlsx (10.9 KB)

Hi @491114473

You can loop through the datatable and use a command as follows to update…

origString.Replace(vbCr, "").Replace(vbLf, "")

Or

StringName.Replace(stringName,chr(13),"")

Let know whether these work for you…

1 Like

Thanks~
Cheers!!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.