G
Guest
I've got several issues with importing CSVs into Excel. I'm using Excel 2003
SP2 on XP.
1) I cannot get the multiline CSVs to work. They look like this:
----
"foo","bar"
"col1 on one line","col two
on
three lines"
----
When I do Data->Import External Data->(import .csv file), all the line
breaks are treated as the beginning of the new row, even if they are within
text qualifiers (quotes). Is there an option somewhere to fix this? Excel
generates .csv files in this format itself, and it does understand them when
using File->Open. Just not via Import. Is this a bug?
2) I have access to the web application which generates a .csv file. It is
of the same format as above. This file is accessible over http (the
application might require to login first if the cookie is not set). Given the
url, I want to automatically import the CSV into my worksheet and do some
standard Excel stuff (e.g., generate a chart); it should be updated once in a
while if the remote CSV changes. I have no control over the web application
which produces the CSV file, so I have to parse it as is. How should I
proceed?
I've tried using .iqy, but I could not specify CSV format (delimiters, etc.)
this way. If I should use VBA, is there an example of something similar
somewhere? (login; file retrieval; parsing.)
thanks!
SP2 on XP.
1) I cannot get the multiline CSVs to work. They look like this:
----
"foo","bar"
"col1 on one line","col two
on
three lines"
----
When I do Data->Import External Data->(import .csv file), all the line
breaks are treated as the beginning of the new row, even if they are within
text qualifiers (quotes). Is there an option somewhere to fix this? Excel
generates .csv files in this format itself, and it does understand them when
using File->Open. Just not via Import. Is this a bug?
2) I have access to the web application which generates a .csv file. It is
of the same format as above. This file is accessible over http (the
application might require to login first if the cookie is not set). Given the
url, I want to automatically import the CSV into my worksheet and do some
standard Excel stuff (e.g., generate a chart); it should be updated once in a
while if the remote CSV changes. I have no control over the web application
which produces the CSV file, so I have to parse it as is. How should I
proceed?
I've tried using .iqy, but I could not specify CSV format (delimiters, etc.)
this way. If I should use VBA, is there an example of something similar
somewhere? (login; file retrieval; parsing.)
thanks!