+ Reply to Thread
Results 1 to 4 of 4

Autofilter with criteria from other sheet

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Autofilter with criteria from other sheet

    He guys,

    An issue that I unfortunately can't solve with autofilter. I've got a code that works partly for my goal. Hereby the situation: I've got a list with numbers in column B (sheetname: sheet1). There needs to be set up a filter but the criteria (multiple) are in an other sheet. The code that I've now got only filters on a value that is in the same sheet. Below the code:

    Please Login or Register  to view this content.
    The new code needs to:
    - get the criteria from sheet 2 (A2: A6)
    - filter the data in sheet 1 (column B) based on the criteria from sheet 2

    If needed, I can provide a test sheet.

    Thanks for all the effort.

    Cheers

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Autofilter with criteria from other sheet

    Hi,

    Presumably

    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Autofilter with criteria from other sheet

    double post...
    Last edited by flunzy; 01-26-2017 at 11:34 AM.

  4. #4
    Registered User
    Join Date
    04-10-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Autofilter with criteria from other sheet

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    Presumably

    Please Login or Register  to view this content.

    Hi Richard,

    Unfortunately it didn't work. I get an error: object required 424. Is there a solution to solve this?

    I've modified the code a bit and with the bellowing code I get an "subscript is out of range"-error:

    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 to autofilter data based on set criteria into a new sheet
    By indik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2015, 04:54 PM
  2. Replies: 4
    Last Post: 12-08-2014, 08:21 PM
  3. [SOLVED] VBA help needed to AutoFilter with multiple criteria and copy to appropriate sheet
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2014, 11:43 AM
  4. Replies: 4
    Last Post: 03-16-2013, 08:33 AM
  5. Replies: 3
    Last Post: 10-22-2012, 05:23 PM
  6. Script, IF sheet has AutoFilter criteria, to unfilter...
    By tangcla in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-10-2009, 06:33 PM
  7. [SOLVED] AutoFilter Pull Criteria from one sheet and custom filter on other
    By dtg_denver in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-20-2005, 06:05 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