+ Reply to Thread
Results 1 to 6 of 6

VBA If row contains values, copy and insert row beneath

  1. #1
    Registered User
    Join Date
    01-25-2013
    Location
    Philadelphia
    MS-Off Ver
    Excel 2010
    Posts
    55

    VBA If row contains values, copy and insert row beneath

    The first sheet is how it looks. The second is the process i want the macro or vba script to perform until everything is in only columns A and B Chart1.jpgChart2.jpg

    It needs to search Column C for a value and if it finds a value copy the row header; insert a new row with this row header and paste the value of the found cell. I am extremely new with writing VBA script but I am working on tweaking what I can find online. Any help is greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA If row contains values, copy and insert row beneath

    Not sure I understand, but maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-25-2013
    Location
    Philadelphia
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: VBA If row contains values, copy and insert row beneath

    Yes thats the general Idea but i would need it to keep running so the column would end up looking like this: Chart3.jpg

    It would need to keep adding a new row per column and delete it from the previous column. <-Which sounds more confusing then the image implys lol

    Thank you for your help so far!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA If row contains values, copy and insert row beneath

    a littlle awkward but Maybe:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-25-2013
    Location
    Philadelphia
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: VBA If row contains values, copy and insert row beneath

    Perfect! Thank you!

  6. #6
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA If row contains values, copy and insert row beneath

    You're welcome. Glad to help out and thanks for the feedback. Please comply with Forum Rule No. 9.

    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved". Or click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Dropdown option or Edit button will not appear -- ask a moderator to mark it.

+ 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. [SOLVED] Fill in missing values of one row with the rows beneath it if the rows beneath match
    By ilikeexcel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-20-2012, 02:40 PM
  2. [SOLVED] Insert Row Below and Copy Values from Row Above
    By tshrader in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-31-2012, 07:21 PM
  3. Insert rows beneath cells containing specific text
    By adame in forum Excel General
    Replies: 2
    Last Post: 07-22-2011, 07:07 AM
  4. Bring Values beneath each other
    By malnahar in forum Excel General
    Replies: 4
    Last Post: 09-17-2009, 03:26 PM
  5. I want to copy partial row to blank row(s) beneath it
    By BWestly in forum Excel General
    Replies: 1
    Last Post: 03-17-2006, 02:00 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