Re: CSV file convert

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



As far as I'm aware, nothing has changed in this feature between versions of
Word.

It sounds like the "carriage returns" in your CSV file aren't being
recognized by Word as real paragraph marks. As a diagnostic step, take a
copy of the document and run Table > Sort on the plain text (it doesn't have
to be in a table for this). If it complains that "Word found no valid
records to sort", then that's the problem.

To fix it, open the Edit > Replace dialog. In the Find What box, enter the
code

^013

In the Replace With box, enter the code

^p

Click the Replace All button. Nothing will change on the screen, but it may
replace the unrecognized carriage returns with real paragraph marks. Then
try converting to a table.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

AlanC wrote:
I have recently upgraded to Word 2003. Previously I could take a text
CSV file, load into Word, select all and then convert text to table.
My CSV file contains commas to seperate each field but the last field
has a carriage return, the file is created by my clinical system
software. Previous versions of Word have accepted this as a field
seperator and have converted the file to a table correctly. However,
Word 2003 seems to ignore the carriage return so adds the last field
of the record to the first field on the next record to make one
field, thereby putting each subsequent record out of sync by one
field each time. Any ideas?


.



Relevant Pages

  • Re: problems parsing CSV file
    ... Excel is different again. ... irregularity in the CSV file. ... >My first guess was that there was a comma, quote mark or carriage return ... >of these records and which ones piggyback and which ones don't. ...
    (microsoft.public.access.externaldata)
  • RE: Save As csv Carraige Return issue
    ... here is a non-VBA way to remove any carriage returns or line feeds. ... Set myRng = ActiveCell.EntireColumn ... When I save this xlsx as a csv file these interim CR are ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Openning an .csv file
    ... I add the Carriage returns (hex-13), ... Does each line of your CSV file end with a carriage return/line feed? ... > Dave Peterson ...
    (microsoft.public.excel.misc)
  • Removing Carriage returns
    ... multi-line textbox, then the csv file is written accordingly. ... file, so that it would not cause excel to advance to the next column, but i ... need to know how to stop the carriage returns from being written to the sql ...
    (microsoft.public.data.ado)
  • Re: Dont understand NoMethodError
    ... def ukquotes ... converting double to single quotes ... raise "CSV file does not exist" ...
    (comp.lang.ruby)