+ Reply to Thread
Results 1 to 2 of 2

Can Combobox linked to Autofilter?

  1. #1
    Registered User
    Join Date
    08-17-2011
    Location
    New York, USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question Can Combobox linked to Autofilter?

    First let me say I am new to VBA and I found your website and it has been very helpful!

    I have been scowering the web and can't get a clear answer...

    Can a combobox be linked to an autofilter? Essentially the combobox would do the exact same thing as the autofilter?

    PREFACE:

    I am building a report generator with a UserForm.
    I have a Userform with 4 Comboboxes. The first is a NAME, 2nd is month, 3rd is a company, and 4th is product number. This data will be drilled down(filtered) using the the comboboxes/autofilter.

    Workbook:
    Sheet - RawData where data is located. The table has entries that correspond to the 4 comboboxes, but also has other columns for quantity, price etc. A total of 90 columns data that has multiple similar entries / repeat data.

    Sheet - CopyData - Sheet where data that has been Autofiltered/Drilled down will be copied to in order for reports to be generated.

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: Can Combobox linked to Autofilter?

    Hi lnk2013

    Welcome to the Forum!

    Sure, you can use the ComboBox entries to filter data. Without seeing your actual worksheet I can only give you the concept. The code to do the filtering would look something like this
    Please Login or Register  to view this content.
    Change the underlined/bold items to suit.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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