Hard breaks in text to soft breaks in Excel

T

tbailey

Hi,

Am importing data into Excel from raw text files. Text files contai
'hard' line breaks, but I need all data to be in a single cell wit
'soft' line breaks... ie alt+Enter...

Is there any easy way to do this?

Please help?!!!!! :-
 
T

Tom Ogilvy

Alt+enter isn't a softbreak. It is a hard break. As long a workwrap is
applied the text will break at the point as a minimum.
 
T

Tim Williams

If you really meant soft breaks instead of hard breaks then look at
Replace()

eg

strContent = Replace(strContent, chr(10),"")
strContent = Replace(strContent, chr(13),"")

Tim.


in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top