Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
RV
 
Posts: n/a
Default How do I get carriage returns to not be row delimiters in text fi.

I am trying to import a text file in which the user has entered carriage
returns for a field. When I import it into Excel, Excel is considering the
carriage return as a row delimiter. I am creating this text file from a .NET
program and would like that program to have to enter whatever special
characters Excel might need to interpret these returns as <ALT<ENTER and a
newline in a cell and not as a new row. Thanks for your help.
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I think you may have a problem with the real end of line markers, too.

If you treat each as an alt-enter, then how would you know when the line ended.

But since you're creating this text file, maybe you could convert the user's CR
to a unique character (!) that isn't use elsewhere. Then your text file will
have that character in what will be the cell.

Then when the user imports this file (via a macro you gave them???), your macro
could edit|replace that unique character with a vblf. Set the cell's format to
wraptext and off you'd go.



RV wrote:

I am trying to import a text file in which the user has entered carriage
returns for a field. When I import it into Excel, Excel is considering the
carriage return as a row delimiter. I am creating this text file from a .NET
program and would like that program to have to enter whatever special
characters Excel might need to interpret these returns as <ALT<ENTER and a
newline in a cell and not as a new row. Thanks for your help.


--

Dave Peterson
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
Import comma delimited text Lin Excel Discussion (Misc queries) 3 July 28th 06 05:07 PM
How do I rotate a text box Kent Charts and Charting in Excel 2 December 17th 04 01:13 AM
Macro or Function to make text size to suite text Length? lbbss Excel Discussion (Misc queries) 4 December 14th 04 08:53 PM
Text Boxes Graham Parkinson Excel Discussion (Misc queries) 2 December 2nd 04 06:01 PM
Vlookup returns incorrect match Smichaud Excel Discussion (Misc queries) 2 November 30th 04 11:51 AM


All times are GMT +1. The time now is 05:35 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"