+ Reply to Thread
Results 1 to 6 of 6

Advanced filter with multiple worksheets

  1. #1
    Registered User
    Join Date
    12-01-2016
    Location
    Brazil
    MS-Off Ver
    Office 2010
    Posts
    3

    Advanced filter with multiple worksheets

    Hello,

    I would like to know if it is possible to use advanced filter for more than one worksheet simultaneously.
    I'm able to filter and copy data from one worksheet and paste them in another worksheet using named ranges and the code below:

    [Range("BASE_1").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range( _
    "FILTER_SELECT"), CopyToRange:=Range("FILTER_PASTE"), Unique:=False]

    But the thing is, I need to filter the same information from multiple sheets and paste the results in one specific sheet.
    In other words: I need to filter the ranges "BASE_1", "BASE_2", "BASE_3"... and so on, each of these being a selection from different worksheets and paste everything on "FILTER_PASTE".

    I'm not sure if I was clear enough, but I would much appreciate if someone could help me find a solution!
    Last edited by brubran; 12-05-2016 at 08:43 AM.

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,637

    Re: Advanced filter with multiple worksheets

    Plausible

    see this thread to see if it matches similar to what you are trying to do
    http://www.excelforum.com/excel-prog...ing-macro.html
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    12-01-2016
    Location
    Brazil
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Advanced filter with multiple worksheets

    humdingaling,

    thank you for your response. I was able to filter from more than one sheet using the sugestion from the other thread, with the following code:

    Please Login or Register  to view this content.
    But I encountered another problem:
    when I filter BASE_1 first and then BASE_2, the pasted data from sheet BASE_2 overwrites the pasted data from BASE_1 since the paste range is the same ('filter_paste")
    I need to find a way to paste the data from BASE_1 on the specified range and after filtering BASE_2, paste the results below the last row of existing data on range "filter_paste".
    I'm attaching a file with a simple example of what I mean.
    Attached Files Attached Files

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Advanced filter with multiple worksheets

    Hi,

    You might filter the second, and any subsequent, ranges in place and then copy below the previous data thus
    Please Login or Register  to view this content.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Registered User
    Join Date
    12-01-2016
    Location
    Brazil
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Advanced filter with multiple worksheets

    xlnitwit,

    thank you! That's exactly what I needed!

  6. #6
    Registered User
    Join Date
    11-09-2017
    Location
    Vietnam
    MS-Off Ver
    Office 365
    Posts
    1

    Re: Advanced filter with multiple worksheets

    Dear brubran and xlnitwit,

    The information is also very helpful for me now. thank you!

+ 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 with multiple criteria
    By kazdima in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 10-16-2015, 05:02 AM
  2. [SOLVED] Macro To Perform same Advanced Filter on Different Worksheets in Workbook
    By PWinkz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2013, 12:43 PM
  3. Replies: 1
    Last Post: 09-18-2013, 10:01 AM
  4. 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
  5. VBA/Macro - Advanced Filter Separating Data into Different Worksheets
    By Dame9255 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-18-2011, 03:51 PM
  6. Advanced Filter with multiple criteria
    By inspiresit in forum Excel General
    Replies: 6
    Last Post: 08-12-2010, 11:21 AM
  7. Advanced Filter from 2 separate worksheets
    By stevedes7 in forum Excel General
    Replies: 4
    Last Post: 12-28-2009, 12:20 AM

Tags for this Thread

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