Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Greetings and TIA for your time
In my code, I want to test to see if AutoFilter is there on the activesheet. If it is ,I need to switch it off, do something, then re apply the AutoFilter. -- David |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveSheet.AutoFilterMode
This returns True or False to indicate the status of AutoFilter John Green "David" wrote in message ... Greetings and TIA for your time In my code, I want to test to see if AutoFilter is there on the activesheet. If it is ,I need to switch it off, do something, then re apply the AutoFilter. -- David |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Code: -------------------- Sub isItOn() Dim isOn As Boolean If Worksheets("Sheet1").AutoFilterMode Then isOn = True Else isOn = False End If MsgBox "AutoFilterMode is " & isOn End Sub -------------------- The above is taken from Microsoft's help files. Add in Code: -------------------- ActiveSheet.EnableAutoFilter = True -------------------- etc...and you're there. -- MartinShort Software Tester ------------------------------------------------------------------------ MartinShort's Profile: http://www.excelforum.com/member.php...o&userid=22034 View this thread: http://www.excelforum.com/showthread...hreadid=374471 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Martin
-- David |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks John
-- David |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel 2007 autofilter change to 2003 autofilter functionality? | Excel Discussion (Misc queries) | |||
2007 excel autofilter back to 2003 autofilter? | Excel Discussion (Misc queries) | |||
2007 excel autofilter change back to 2003 autofilter? | Excel Discussion (Misc queries) | |||
Removal of Zero | Excel Worksheet Functions | |||
Add-in removal | Excel Programming |