I have been wrestling with this problem with past 4 hours and to be honest really exhausted... I am trying to write a CSV file through vbscript with multi lines in few of the fields... thought it would be easy peasy ... not so ...My original code is
summary = "This is my brief summary"
description = "Hello" & vbCrLf & "Today, I am going to describe my issue."
reference_id = "0000102203"
Set fso = CreateObject("Scripting.FileSystemObject")
Set csv = fso.CreateTextFile(download_file_name,True)
csv.WriteLine summary & "," description & "," & "Consulting" & "," & reference_id
csv.close
set csv = Nothing
All I am trying to do is create a csv, and when I use excel to open the file would show up as
This is my brief summary| Hello |Consulting| 0000102203
| Today, I am going to describe my issue. |
And what I am getting with numerous tries of replacing vbCrLf with vbCr,vbLf, chr(10), chr(13), "\n", "\n", "\r","\r" and heaps more
This is my brief summary| Hello
Today, I am going to describe my issue. |Consulting| 0000102203
Is there anyway I can actually solve this problem?
Thanks