I want to import a csv file in Excel. The csv file has carriage returns but Excel don't show them (see picture 1). The carriage return only comes up when i select the text in the cell and press enter.
Is there a way to solve this automatically? (vba)
- I've tried to substitute the carriage return by a semicolon, but Excel does not find the carriage return. (=SUBSTITUTE(F2, CHAR(10), ";")
- Text wrap is turned on in the cells
- I tried to find the carriage return with a macro and the "instr()" function but Excel does not find the Chr(10).
Sub FindCarriageReturn()
myPos = InStr(1, Range("F2"), Chr(10))
End Sub
All documents: https://drive.google.com/open?id=1Kwr1VjCSdxtbtNcM6h5Rl8tc_Mo9XIA6
Thanks in advance!
Dieter