+ Reply to Thread
Results 1 to 4 of 4

Insert Row on Condition

  1. #1
    Forum Contributor
    Join Date
    06-12-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    153

    Insert Row on Condition

    Hi, All

    I need your help in insert multiple rows based on a text from a cell, and copy the content below

    I have attached the excel with original and expected sheets.

    Looking forward to your great help.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Insert Row on Condition

    Hi @ dineshsachidananda

    I've prepared a code to copy your multi line text, to a new sheet named Destination, separating into the pieces you show in the expected sheet.
    included is a workbook with the macro.
    you can run the macro clicking on the "Separate Tex" button

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by vichopalacios; 10-26-2017 at 08:57 AM.
    Barriers are there for those who don't want to dream

  3. #3
    Forum Contributor
    Join Date
    06-12-2014
    Location
    India
    MS-Off Ver
    2010
    Posts
    153

    Re: Insert Row on Condition

    Hi @vichopalacios

    Thanks for your help

    The code is doing almost what is expected. It needs a little refining & your expertise again.

    As per the condition - 'From to Next From', C2 to C4 gets spilit into 12 rows with no blanks... But the destination sheet post executing the code, add rows with blank, also there are missing text..

    Req you to kindly look into it one more time, and assist.. The outcome should be the same as Expected Sheet to help my objective

  4. #4
    Valued Forum Contributor
    Join Date
    08-07-2014
    Location
    Quito, Ecuador
    MS-Off Ver
    Excel 2016 & 365, Windows 10
    Posts
    511

    Re: Insert Row on Condition

    Hi @dineshsachidananda

    I've changed the way to approach the problem, Hopefully it does what you need
    Try the new book I'm posting now

    You can run the macro from the "Original" sheet as before, or form the "Destination" sheet
    Or from the "Destination" sheet
    Also I've included a little code to clean the "Destination" sheet
    Attached Files Attached Files

+ 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. Insert new row based on condition ?
    By ramshakku in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-04-2014, 06:49 AM
  2. Insert a new row with condition by VBA
    By shan_shan088 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-18-2013, 10:32 AM
  3. insert row in tab 2 upon insert row in tab1 if condition matches
    By mbaconqueror in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-16-2012, 12:53 AM
  4. Insert if Condition Matched.
    By sayinso in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2010, 11:42 PM
  5. insert a line on condition
    By jinvictor in forum Excel General
    Replies: 1
    Last Post: 06-04-2006, 07:10 AM
  6. [SOLVED] Insert row if condition met
    By Acct Supr - DCTC in forum Excel General
    Replies: 1
    Last Post: 10-06-2005, 02:05 PM
  7. [SOLVED] Insert Row Condition
    By James in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-06-2005, 03:06 PM

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