ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Autofilter (https://www.excelbanter.com/excel-programming/304202-autofilter.html)

No Name

Autofilter
 
I need to capture the state of autofilter
If it is on I need to turn it off

if I use - Selection.Autofiler, the filter is turned off
it it is on. If it is off, it gets turned on.

I need to programatically add some columns (I know how to
do that) but I can't if the autofilter is on. I need to
check the state of Autofilter and if it is on, turn it
off.

How do I capture the state of Autofilter?

any ideas?

Thanks
Glen

Frank Kabel

Autofilter
 
Hi
try
If ActiveSheet.FilterMode Then


Also see:
http://www.contextures.com/xlautofilter03.html


--
Regards
Frank Kabel
Frankfurt, Germany


wrote:
I need to capture the state of autofilter
If it is on I need to turn it off

if I use - Selection.Autofiler, the filter is turned off
it it is on. If it is off, it gets turned on.

I need to programatically add some columns (I know how to
do that) but I can't if the autofilter is on. I need to
check the state of Autofilter and if it is on, turn it
off.

How do I capture the state of Autofilter?

any ideas?

Thanks
Glen



All times are GMT +1. The time now is 05:59 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com