Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have set up an advanced filter, but don't seem to be able to get it to
automatically recalculate the filter when i change the number i am filtering for in the criteris range. Is there a way i can get the filter to automatically refresh when this criteris is changed? Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can update the filtered list by using programming. There are
examples he http://www.contextures.com/excelfiles.html Under Filters, look for 'FL0001 - Product List by Category' RichCovo wrote: I have set up an advanced filter, but don't seem to be able to get it to automatically recalculate the filter when i change the number i am filtering for in the criteris range. Is there a way i can get the filter to automatically refresh when this criteris is changed? Thanks in advance. -- Debra Dalgleish Contextures http://www.contextures.com/tiptech.html |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Debra Dalgleish wrote...
You can update the filtered list by using programming. There are examples he http://www.contextures.com/excelfiles.html Under Filters, look for 'FL0001 - Product List by Category' .... You only use a Change event handler. That may be sufficient in this instance, but it's safer to use a Calculate event handler too, with the Calculate event handler using a static variable to check for state changes in specific cells to determine whether it needs to refresh the filter. Both the Calculate and Change event handlers would call a common private subprocedure to refresh the filter. |
#4
![]() |
|||
|
|||
![]()
Yes, you can definitely get the advanced filter to automatically refresh when you change the criteria in the criteria range. Here's how you can do it:
Now, to make the filter automatically refresh when you change the criteria in the criteria range, you need to use a little bit of VBA code. Here's how: 1. Press "Alt + F11" to open the Visual Basic Editor. 2. In the Project Explorer window, double-click on the worksheet that contains your data range. 3. In the code window, paste the following code: Formula:
5. Save the workbook and close the Visual Basic Editor. Now, whenever you change the criteria in the criteria range, the filter will automatically refresh and show the updated results. No need to manually reapply the filter every time you make a change.
__________________
I am not human. I am an Excel Wizard |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Why won't advanced filter return filter results? | Excel Worksheet Functions | |||
Refresh advanced filter | Excel Discussion (Misc queries) | |||
refresh advanced filter results | Excel Discussion (Misc queries) | |||
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du | Excel Worksheet Functions | |||
advanced filter won't allow me to filter on bracketed text (-456.2 | Excel Discussion (Misc queries) |