+ Reply to Thread
Results 1 to 2 of 2

Autofilter based on input from a range on a worksheet

  1. #1
    Forum Contributor
    Join Date
    03-14-2013
    Location
    England
    MS-Off Ver
    2007
    Posts
    191

    Autofilter based on input from a range on a worksheet

    Hi,

    I have no idea if this is possible or not....

    In a macro I am using autofilter on column A for an array of values, and for however many rows of data exist etc. Like this.......

    Please Login or Register  to view this content.
    I would like to read a list of values entered into column A of a worksheet, and then autofilter as above but for all of the values that existed in column A of a specified worksheet, whatever they were, and however many of them there were.

    Lets say we have 'Worksheet1' which is blank, and 'Worksheet2' which contains data. In 'Worksheet1' we paste a list of unique values into column A, those same values also exist in column A of 'Worksheet2' (perhaps multiple times and among many others). I want a macro to read the contents of column A of 'Worksheet1', and then autofilter column A of 'Worksheet2' as above, for all of the values that were found in columns A of 'Worksheet1'.

    Could anyone please help with example code on how this might be achieved?

    Many thanks,

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Autofilter based on input from a range on a worksheet

    Conceptually, this should work:

    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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. Autofilter to select a range from user input
    By santu03 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2013, 12:11 AM
  2. autofilter based on cell input (=>)
    By ln2012 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2013, 03:40 AM
  3. Conditionally unlock worksheet based on cell input in worksheet
    By CST in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2013, 10:27 AM
  4. Autofilter based on a range of multiple values
    By kinseld5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-04-2012, 10:26 AM
  5. [SOLVED] Macro to manually input which field (column) to autofilter on using an input prompt
    By rin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2012, 09:35 AM

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