+ Reply to Thread
Results 1 to 2 of 2

Copy individual lines from cell with broken lines by char(10)

  1. #1
    Forum Contributor
    Join Date
    02-05-2015
    Location
    czech
    MS-Off Ver
    2010
    Posts
    172

    Copy individual lines from cell with broken lines by char(10)

    Can you please help me? I have cells filled with strings broken by Chr(10).
    The Chr(10) was manually added by alt+enter. I would like to copy these individual lines in separate cells.

    I think it may be done by functions InStrRev, InStr, Mid and For loop, but will be a bit of challenge. Is there a more simple way?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Copy individual lines from cell with broken lines by char(10)

    Can't test it right now but there are a couple of options that should work. In code, you could use Split with the delimiter Chr(10).

    But you could probably us Text to Columns, delimited and, in the Other box, hold down the Alt key and press 010 on the numeric pad.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Replies: 0
    Last Post: 03-19-2014, 10:33 PM
  2. macro to autofilter and copy first 15 lines visible lines in columns D:E
    By Juraj123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-20-2013, 03:40 AM
  3. Data elements within a single cell need to be on individual lines
    By d1jpd01 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-01-2013, 08:10 AM
  4. subtotaling groups of data broken apart my inserted lines
    By zed commander in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-15-2012, 06:14 AM
  5. How to connect broken lines in Excel 2010
    By 527721970 in forum Excel General
    Replies: 2
    Last Post: 08-31-2011, 04:12 AM
  6. PivotChart broken lines
    By bruiser in forum Excel General
    Replies: 7
    Last Post: 11-01-2010, 07:09 PM
  7. Broken Lines on my Scatter Graph
    By chrismann85 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 05-22-2008, 05:18 AM
  8. Broken lines in a chart to display extreme values?
    By Metin Örsel in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-04-2005, 10:05 AM

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