Closed Thread
Page 2 of 2 FirstFirst 12
Results 16 to 26 of 26

Thread: deleting new line character

  1. #16
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,780

    Re: deleting new line character

    just coz your info is confidential doest mean you couldnt post an example of a few cells deleting everything except the last and first letters
    martin
    wilson

    becomes

    n
    w

  2. #17
    Registered User
    Join Date
    01-28-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: deleting new line character

    "3.0 Schedule
    C submitted the work progress chart as of end of 2.
    (Appendix)
    P advised C that ng
    the that
    productivity areas.
    According O, date
    of 02.
    This not
    be progress
    improves immediately.
    C intend to
    do time
    resolves chedule."


    is that any use??? just deleted txt in between.. but the start and ends sud be the same

  3. #18
    Registered User
    Join Date
    01-28-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: deleting new line character

    i understand what ur saying with that code..

    but never used VBE immediate window before..

    can ya give me a quick run down with it??

  4. #19
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: deleting new line character

    We can not use anything you post as we have not idea what the copy/paste and post would have done to the text.

    Can you not copy 1 example to a new workbook and simply replace all the visible characters with X.

    To go to VBE press ALT+F11
    to goto immediate window press CTRL+G
    copy/paste the line of syntax and press ENTER on that line.
    Cheers
    Andy
    www.andypope.info

  5. #20
    Registered User
    Join Date
    01-28-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: deleting new line character

    OH MY GOD...
    that does exactly what i want..

    probably pushing the boat out a bit now..
    but is there a way i can get that to work globably on the whole program??

  6. #21
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    2003 & 2007 & 2010
    Posts
    11,351

    Re: deleting new line character

    You could try this in the immediate window

    cells.Replace chr(10)," "
    Cheers
    Andy
    www.andypope.info

  7. #22
    Registered User
    Join Date
    01-28-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: deleting new line character

    A MILLION THANKS YOU..
    thank you thank you.. i think you just saved me about 3 weeks work there...

  8. #23
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,780

    Re: deleting new line character

    just as a question , have you saved the workbook first? replace alt+010 only works if the data has been saved in a work book
    you can't just open one stick in a load of data then use it.

  9. #24
    Registered User
    Join Date
    01-28-2009
    Location
    Ireland
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: deleting new line character

    ye.. all the data saved 1st.. so its ok that way..

  10. #25
    Registered User
    Join Date
    09-23-2008
    Location
    Slovakia
    Posts
    4

    Re: deleting new line character

    You can use the CLEAN function, which removes all non-printable characters.

    This worked well for me.

  11. #26
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: deleting new line character

    @xaver, please try to avoid posting to old threads - this thread for example has been dormant for over two years.

Closed 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.2.0