aka_krakur
Active Member
- Joined
- Jan 31, 2006
- Messages
- 438
I think I might have written a portion of a simple macro to autofilter via Macro.
Problem is if the user has already done a manual filter at some point, and then runs the macro it doesn't filter correctly.
Is there a way to just "turn off" filter before the macro runs?
I am not listing the rest of my more complex portion of the macro because it's irrelevant.
Code:
Range("A3:K3").Select
Selection.AutoFilter
Selection.AutoFilter Field:=11, Criteria1:="=NO", Operator:=xlAnd
Is there a way to just "turn off" filter before the macro runs?
I am not listing the rest of my more complex portion of the macro because it's irrelevant.