Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default line break does not appear in CSV

I am formatting text in a cell, and inserting line breaks with CHAR(10) and
&. Text in the cell correctly appears with line breaks inserted, when viewed
in Excel.
I then save the file as a CSV and view that file in Notepad. No line breaks
are seen in the CSV.
Also tried the " <ALT<ENTER " method with no success.
Using Excel 2007. Viewing CSV in Notepad, with Word Wrap turned off.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default line break does not appear in CSV

The "line breaks" will be characters in line with the rest of the
printable characters in Notepad. If you want to see the "effects" open
the csv file with WordPad or edit.com(You should edit.com in
Windows\System32 folder)

BFON wrote:

I am formatting text in a cell, and inserting line breaks with CHAR(10) and
&. Text in the cell correctly appears with line breaks inserted, when viewed
in Excel.
I then save the file as a CSV and view that file in Notepad. No line breaks
are seen in the CSV.
Also tried the " <ALT<ENTER " method with no success.
Using Excel 2007. Viewing CSV in Notepad, with Word Wrap turned off.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 118
Default line break does not appear in CSV

Hi,

I think instead of "Line Feed" or Char(10) you need to be using "Carriage
Return" or Char(13). Try it out, let me know if it solves your problem.
--
If this helps, please click "Yes"
<<<<<<<<<<<


"BFON" wrote:

I am formatting text in a cell, and inserting line breaks with CHAR(10) and
&. Text in the cell correctly appears with line breaks inserted, when viewed
in Excel.
I then save the file as a CSV and view that file in Notepad. No line breaks
are seen in the CSV.
Also tried the " <ALT<ENTER " method with no success.
Using Excel 2007. Viewing CSV in Notepad, with Word Wrap turned off.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default line break does not appear in CSV

Rick,
I solved this issue. The culprit was Notepad! Instead I viewed the file
using the better performing TextPad and it appeared correctly. I couldn't
believe it. Wasted a few hours on that one... Carriage return also works.
Regards,
-Bill

"BSc Chem Eng Rick" wrote:

Hi,

I think instead of "Line Feed" or Char(10) you need to be using "Carriage
Return" or Char(13). Try it out, let me know if it solves your problem.
--
If this helps, please click "Yes"
<<<<<<<<<<<


"BFON" wrote:

I am formatting text in a cell, and inserting line breaks with CHAR(10) and
&. Text in the cell correctly appears with line breaks inserted, when viewed
in Excel.
I then save the file as a CSV and view that file in Notepad. No line breaks
are seen in the CSV.
Also tried the " <ALT<ENTER " method with no success.
Using Excel 2007. Viewing CSV in Notepad, with Word Wrap turned off.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get a line break to always work? AFD at FONO[_2_] Excel Discussion (Misc queries) 2 May 15th 08 12:29 AM
Line break GARY Excel Discussion (Misc queries) 1 November 6th 07 12:00 AM
ALT+ENTER = line break Nyla Excel Discussion (Misc queries) 14 July 26th 07 03:07 AM
Break cell into multiple lines by line break Chia Excel Discussion (Misc queries) 1 August 20th 06 06:37 AM
Line Break Ramthebuffs Excel Discussion (Misc queries) 4 August 22nd 05 08:52 PM


All times are GMT +1. The time now is 08:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"