troubleshooting Question

Excel VBA - AutoFilter turn off if on

Avatar of hindersaliva
hindersalivaFlag for United Kingdom of Great Britain and Northern Ireland asked on
Microsoft OfficeMicrosoft ExcelVBA
2 Comments2 Solutions490 ViewsLast Modified:
I see that AutoFilter is a toggle.
ie. Selection.AutoFilter

I have range where there are some AutoFilters. I want to turn off AutoFilter only if they are On.
I don't want to toggle because then I will create an AutoFilter where there is none.

How do I test if AutoFilter exists? I have a range for the Column Headers Range("ColumnHeaders") where the AutoFilters, if any, are.

Thanks
ASKER CERTIFIED SOLUTION
Shums
Excel VBA Developer
Join our community to see this answer!
Unlock 2 Answers and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros