+ Reply to Thread
Results 1 to 1 of 1

VBA - Retrieve List of Available Criteria on Autofilter Columns

  1. #1
    Registered User
    Join Date
    12-14-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question VBA - Retrieve List of Available Criteria on Autofilter Columns

    Hello there,

    I am using a couple of combo boxes/validation cells with lists of criteria to filter (autofilter) a table on another sheet on the same excel 2010 workbook. I use VBA code to import the data table from csv file that may contain upto 100,000 rows and hundreds of columns. The list I use on validation cells and combo boxes are Dynamic Named Ranges. I use worksheet change event to trigger the macro when validation cells are changed. Now I need some quicker method to auto update the dynamic named ranges used in validations cells or combo boxes with the list of available criteria on drop down (i.e. the list we see on autofilter columns when we select the dropdown arrow - NOT applied criteria) as soon as I apply the filter on other columns of the table using validation cells/combo boxes. I already use a method (VBA code) which releases the autofilters on each of the columns whichever I use on validation cells & combo boxes one by one, copy the visible cells on the column to another sheet where I have dynamic named ranges, remove the duplicate on this list (using excel remove duplicate method) and reapply the criteria on autofilter. Although I use all the possible methods I know to improve response time (like turning off screen updating & manual mode calculation when macro runs), yet this method is not very quicker when there is too much of records on the table. I searched on different forums but didn't find any method I need. I really appreciate if someone could tell me if there is some easier method to retrieve the available criteria on autofilter column on to a variable (array) or to worksheet cells.

    Thanks a lot in advance
    Sandheep
    Last edited by Sandheep; 12-14-2012 at 07:25 PM. Reason: for more clarity

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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