Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
anyone knows why with a macro that export on TXT a table, some lines are splitted in 2 rows ?
Thank you
It's a carriage return respectively chr(13) - see: http://www.virtualuniversity.ch/software/ascii/0.html.
Just try: replace(Text, chr(13), '')
- Marcus
Quite probably is there any extra line-break char included within your data. Just use another editor like notepad++ and switch on the option to display all chars. Usually it's the best to adjust the data before you export them - probably with a replace like:
replace(Text, chr(10) & chr(10), chr(10))
Before just starting with trial & error like this example take a look in the data to know which chars cause this issue.
- Marcus
indeed there's a CR ... WHAT IS THIS? how can be removed before exporting?
It's a carriage return respectively chr(13) - see: http://www.virtualuniversity.ch/software/ascii/0.html.
Just try: replace(Text, chr(13), '')
- Marcus