ExcelBanter

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

Valeria[_2_]

Autofilter Testing
 
Dear experts,
I am using macros on files that are shared by different
users, and some of them use autofiltering to easily access
data.
How can I add to my macro a function (or anything else) to
test if the autofilter in a worksheet is switched on, and
in case switch it off?
Many thanks.
Kind regards,
Valeria


BrianB

Autofilter Testing
 

There is no need to check. From "something I prepared earlier"

Set SumSheet = ThisWorkbook.Worksheets("Consolidated")
SumSheet.AutoFilterMode = Fals

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

~~Now Available: Financial Statements.xls, a step by step guide to creating financial statements


All times are GMT +1. The time now is 10:35 AM.

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