Advanced Filter - Refresh

Giskard

New Member
Joined
Oct 28, 2008
Messages
3
Hi All,

I set up an Advanced filter on a small amount of data and it works great. However, when I update my Criteria(from ="=1" to ="=2") the filter does not automatically update.

To update I have to go into advanced filter and just press okay.

How do I make Advanced Filter Automatically update?


-Giskard
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
You can create a macro that performs the Advanced Filter | OK steps. The copy that code to the worksheet SelectionChange event. Something like this (Edit to suit your ranges):


Private Sub Worksheet_SelectionChange(ByVal Target As Range)

Range("A1:B8").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=Range _
("E12:F13"), Unique:=False

End Sub


Every time you edit the criteria and press Enter, the filter updates.
 
Upvote 0
Thank you. Is there a way to do this without macros? As in my organization some people are using 2007 and thus would get warnings. Further explaining to someone 2 pay grades above me what VBA is not a task I look forward to.

I am actually using this advance filter for affectively a conditional hide function, where if cell X=1, rows 5-9 become hidden. If there is another way to do this without Advanced filter I am all ears.


P.S. I am using 2003.

Thank you once again.

-Giskard
 
Upvote 0
Then try regular autofilter. Data | Filter | Autofilter

When you use this, select "custom" from the drop down box in the field you want the condition, and set the "equals" or "greater than" or whatever condition you want.

You would need to teach them how to use this feature, but there is no VBA.
 
Upvote 0
Thanks for the quick reply.

I guess I will need to figure out another method. It just one of those things that require a "no touch" spreadsheet.


By the way do you know of any other way to hide cells, without invoking macros?

-Giskard
 
Upvote 0

Forum statistics

Threads
1,214,925
Messages
6,122,298
Members
449,077
Latest member
Rkmenon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top