+ Reply to Thread
Results 1 to 5 of 5

Adding Rows based on a column value

  1. #1
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Adding Rows based on a column value

    Hi Friends,
    I was wondering if somebody could help me out with a vba code to insert rows based on a Column value and then fill the rows with previous row data. For example in "Column G" I have 1010,120,1300 one below the other. Then I want there will be 3 new rows with data 1010,120 and 1300. But all the other cell value contents will be same. I am attaching a sample file for your consideration.
    Thanks in advance friends.
    regards,me
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Adding Rows based on a column value

    Give a chance to next code
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Adding Rows based on a column value

    Thanks PCI, it works, just can you please let me know the places where should I change if I want to run the code in any other Column. Thanks bro !

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,088

    Re: Adding Rows based on a column value

    See where is mentioned "G" (3 places) and change for your need

  5. #5
    Forum Contributor
    Join Date
    02-07-2011
    Location
    Bhutan
    MS-Off Ver
    Excel 2007
    Posts
    244

    Re: Adding Rows based on a column value

    Thanks PCI !

+ 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: 1
    Last Post: 11-05-2013, 11:22 AM
  2. Replies: 3
    Last Post: 11-08-2012, 09:29 PM
  3. Adding Multiple Rows Based on Column Info
    By stm in forum Excel General
    Replies: 2
    Last Post: 06-03-2011, 01:18 PM
  4. Replies: 2
    Last Post: 04-25-2011, 09:50 AM
  5. Replies: 13
    Last Post: 07-07-2010, 10:16 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