+ Reply to Thread
Results 1 to 3 of 3

Hard breaks in text to soft breaks in Excel

  1. #1
    Registered User
    Join Date
    07-25-2005
    Posts
    3

    Unhappy Hard breaks in text to soft breaks in Excel

    Hi,

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

    Is there any easy way to do this?

    Please help?!!!!! :-)

  2. #2
    Tom Ogilvy
    Guest

    Re: Hard breaks in text to soft breaks in Excel

    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.

    --
    Regards,
    Tom Ogilvy

    "tbailey" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Hi,
    >
    > Am importing data into Excel from raw text files. Text files contain
    > 'hard' line breaks, but I need all data to be in a single cell with
    > 'soft' line breaks... ie alt+Enter...
    >
    > Is there any easy way to do this?
    >
    > Please help?!!!!! :-)
    >
    >
    > --
    > tbailey
    > ------------------------------------------------------------------------
    > tbailey's Profile:

    http://www.excelforum.com/member.php...o&userid=25566
    > View this thread: http://www.excelforum.com/showthread...hreadid=389990
    >




  3. #3
    Tim Williams
    Guest

    Re: Hard breaks in text to soft breaks in Excel

    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.


    "tbailey" <[email protected]> wrote
    in message
    news:[email protected]...
    >
    > Hi,
    >
    > Am importing data into Excel from raw text files. Text files contain
    > 'hard' line breaks, but I need all data to be in a single cell with
    > 'soft' line breaks... ie alt+Enter...
    >
    > Is there any easy way to do this?
    >
    > Please help?!!!!! :-)
    >
    >
    > --
    > tbailey
    > ------------------------------------------------------------------------
    > tbailey's Profile:
    > http://www.excelforum.com/member.php...o&userid=25566
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=389990
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1