+ Reply to Thread
Results 1 to 14 of 14

Automatically copy a row of data from one sheet to another

  1. #1
    Registered User
    Join Date
    04-19-2013
    Location
    wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Automatically copy a row of data from one sheet to another

    Hello,

    I'd like to learn how to automatically copy a row of data from one sheet to another, only if a specific cell contains specific data. It would have to populate on one sheet but read from multiple sheets in the same workbook.

    I.E. if tab 213 has "SOP" in column F, I would like to copy the data from that row and insert it into the SOP tab.

    ROUTSHEET.xlsx

  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: Automatically copy a row of data from one sheet to another

    Quote Originally Posted by bodi22577 View Post
    Hello,

    I'd like to learn how to automatically copy a row of data from one sheet to another, only if a specific cell contains specific data. It would have to populate on one sheet but read from multiple sheets in the same workbook.

    I.E. if tab 213 has "SOP" in column F, I would like to copy the data from that row and insert it into the SOP tab.

    Attachment 291835
    Per your PM. Is this what you are trying to do?

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 01-23-2014 at 11:28 AM.

  3. #3
    Registered User
    Join Date
    04-19-2013
    Location
    wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically copy a row of data from one sheet to another

    You rock! That works perfect! Thanks so much for your help!

  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: Automatically copy a row of data from one sheet to another

    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.

  5. #5
    Registered User
    Join Date
    04-19-2013
    Location
    wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically copy a row of data from one sheet to another

    I just had some more time to use it. I noticed every time I run the macro it duplicates the data. Any way to fix that? Also, If I wanted to do the same function for column "G" with the keyword "wait" how would I add that?

    Thanks again,
    Ryan

  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: Automatically copy a row of data from one sheet to another

    Do you mean you want to clear the destination sheets first?

    Maybe:

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-19-2013
    Location
    wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically copy a row of data from one sheet to another

    One last thing and it should be perfect... The script clears the top row of the destination sheet, any way to copy that or keep it from clearing?

    Again, I really appreciate all of your help.

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

    Re: Automatically copy a row of data from one sheet to another

    Maybe:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    04-19-2013
    Location
    wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically copy a row of data from one sheet to another

    I get an error 400 after copying that last script into my workbook.

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

    Re: Automatically copy a row of data from one sheet to another

    Try:

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    04-19-2013
    Location
    wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically copy a row of data from one sheet to another

    It still clears the top row, which contains the column headings.

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

    Re: Automatically copy a row of data from one sheet to another

    Try it now.

    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    04-19-2013
    Location
    wisconsin
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Automatically copy a row of data from one sheet to another

    Looks good to me! Thanks again!

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

    Re: Automatically copy a row of data from one sheet to another

    You're welcome. Glad to help out.

+ 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. Copy row data from one sheet to another sheet automatically
    By chewfoong in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-01-2013, 10:47 PM
  2. [SOLVED] How to Automatically Copy New Data into the next sheet and have it automatically sorted??
    By ReedDOT in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-24-2013, 10:50 AM
  3. How do I Copy certain data to another sheet-automatically
    By scrumpyjack in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-26-2013, 11:15 AM
  4. [SOLVED] Automatically copy data from one sheet to another
    By BradGe in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-03-2012, 04:09 AM
  5. Replies: 5
    Last Post: 06-21-2012, 05:16 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