+ Reply to Thread
Results 1 to 5 of 5

Advanced Filter - Pasting two sets of data into the same sheey

  1. #1
    Registered User
    Join Date
    06-18-2019
    Location
    Coventry
    MS-Off Ver
    2016
    Posts
    13

    Advanced Filter - Pasting two sets of data into the same sheey

    Hi,

    I've created the below macro that uses the advanced filter to filter and copy two sets of data from different sheets into one sheet. However the second set of data pastes over the first because the CopyToRange is the same. How can I change the CopyToRange of the 'Detailed Reg' to be the next empty row?

    Please Login or Register  to view this content.
    Thanks
    Last edited by AliGW; 07-19-2019 at 07:00 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,919

    Re: Advanced Filter - Pasting two sets of data into the same sheey

    Administrative Note:

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are still relatively new here, I have done it for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-18-2019
    Location
    Coventry
    MS-Off Ver
    2016
    Posts
    13

    Re: Advanced Filter - Pasting two sets of data into the same sheey

    Ali,

    Apologies and thank you updating the post!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2504
    Posts
    19,372

    Re: Advanced Filter - Pasting two sets of data into the same sheey

    Would appending one of the tables with the other using Get & Transform (Power Query) as demonstrated in the linked tutorial from Highline college be a consideration?
    https://www.youtube.com/watch?v=aOQdxhLCuCA
    The one change that you will probably want to make is at the 4:00 mark of the tutorial where he produces a connection only to the Data Model, it sounds as if you would rather just produce a table on a new sheet (first selection on the dialog box).
    For more specific details on how this could be accomplished with your data please upload a small desensitized sample of the workbook by clicking on the GO ADVANCED button below the Quick Reply window and then scrolling down to Manage Attachments to open the upload window.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: Advanced Filter - Pasting two sets of data into the same sheey

    This is untested:

    Please Login or Register  to view this content.

+ 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. VBA Advanced Filter - Two Filters Without Deleting Bottom Filter Data In Same Column Range
    By hysterical.useless in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-14-2017, 02:54 PM
  2. Replies: 14
    Last Post: 01-17-2017, 06:39 PM
  3. Copying columns of 10 data sets and pasting them into a new sheet
    By novious1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2015, 10:59 PM
  4. Copying Specific Data sets and pasting them in Columns of 10
    By novious1 in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 04-15-2015, 11:15 PM
  5. Using Array for advanced filter terms and then pasting a corresponding value
    By hblauth in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2013, 05:39 AM
  6. advanced filter - button to re apply advanced filter across multiple sheets
    By motmac87 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-05-2013, 11:16 PM
  7. Second Advanced Filter does not work based on the data generated from the filter
    By mucc1928 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2011, 02:42 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