+ Reply to Thread
Results 1 to 2 of 2

Delete lines in a multiple cell

  1. #1
    Registered User
    Join Date
    12-13-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    13

    Delete lines in a multiple cell

    TTHBF251863100

    147943F00KNQ TTHBF251863100
    REF VINS DU MONDE SA
    O/RTT HBF251863100


    Hello,

    I need a macro to transform my multiple lines cell as above ( 5 lines ) into a one line cell as below.

    REF VINS DU MONDE SA

    As the cells needing changing will always be different it would be good if I could have a macro working on the selected cells only, not a specified range.

    Hope you can help, many thanks

  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: Delete lines in a multiple cell

    Will it always be the Forth of these lines you are after?

    Before VBA, try the attachment.
    Attached Files Attached Files
    Last edited by GeneralDisarray; 08-05-2014 at 11:56 AM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Import multiple text files delete rows between lines with File Name
    By coronakyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2014, 09:53 PM
  2. [SOLVED] Need to delete multiple lines in cells but keep one
    By Javier20h in forum Excel Programming / VBA / Macros
    Replies: 42
    Last Post: 10-30-2013, 01:01 PM
  3. [SOLVED] Split Wrapped Text (Multiple Lines) in A Cell to Multiple Columns
    By csmiin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2012, 09:15 PM
  4. [SOLVED] Macro to Delete useless lines, rearrange by dates and skip lines between different days.
    By Tmc2159 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-12-2012, 02:15 PM
  5. [SOLVED] Is there a way to delete multiple lines at the same time beside u.
    By cherry in forum Excel General
    Replies: 2
    Last Post: 04-11-2005, 02:06 PM

Tags for this Thread

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