+ Reply to Thread
Results 1 to 10 of 10

Copying rows based on criteria

  1. #1
    Registered User
    Join Date
    08-04-2012
    Location
    cardiff
    MS-Off Ver
    Excel 2007
    Posts
    49

    Copying rows based on criteria

    Hi
    I want to use VBA code to auto populate sheets with the data from my mastersheet based on the criteria shown in column A, I've managed to get most of it working but we need to retain the data on the master sheet and at the moment I am duplicating the entries on the second sheets.

    i have attached a dummy example of what I am trying to do

    Many thanks

    Sue
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Copying rows based on criteria


    Hi !

    You can use the easy advanced filter method to directly filter and copy data …

  3. #3
    Registered User
    Join Date
    08-04-2012
    Location
    cardiff
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Copying rows based on criteria

    thank you but we want to be able to automate the process and not have to do filters and then copy paste - I presume this is what you mean to do

    thanks

    Sue

  4. #4
    Registered User
    Join Date
    08-04-2012
    Location
    cardiff
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Copying rows based on criteria

    Hi Marc L I'm trying the advanced filter but it's testing my brain

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copying rows based on criteria

    Is this what your wanting?

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  6. #6
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copying rows based on criteria

    Is this what your wanting?

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    08-04-2012
    Location
    cardiff
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Copying rows based on criteria

    Mike7952 - thankyou - you are amazing

  8. #8
    Registered User
    Join Date
    08-04-2012
    Location
    cardiff
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Copying rows based on criteria

    Sorry Mike7952 I have one more query, see attached sheet - If I want to add more columns for example for addresses how do I change the code to copy over the complete row, I envisage adding more data to the mastersheet

    Many thanks

    Sue
    Attached Files Attached Files

  9. #9
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Copying rows based on criteria

    This will work, see highlighted changes

    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    08-04-2012
    Location
    cardiff
    MS-Off Ver
    Excel 2007
    Posts
    49

    Re: Copying rows based on criteria

    Thank you Mike7952 that is amazing

+ 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] Macro for copying rows in sheet1 to end of existing rows in sheet2 based on criteria
    By Karl Gustaf Karsten in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2015, 04:19 AM
  2. Copying rows into new workbook, based on set criteria
    By newbie200390 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-27-2015, 05:39 PM
  3. [SOLVED] Copying Rows of Data Based on Criteria
    By harrydnyc in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-06-2011, 03:34 AM
  4. Copying rows from another sheet based on specific criteria
    By jamesbrown008 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2011, 01:53 PM
  5. Replies: 0
    Last Post: 07-21-2010, 07:12 PM
  6. Copying rows in range based on criteria
    By rhudgins in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2010, 12:48 PM
  7. Copying whole rows based upon one criteria
    By kirbster1973 in forum Excel General
    Replies: 2
    Last Post: 05-26-2005, 05:15 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