Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default AutoFilter removal

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default AutoFilter removal

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default AutoFilter removal


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default AutoFilter removal

Thanks Martin
--
David

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default AutoFilter removal

Thanks John
--
David

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 3 April 19th 10 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
Removal of Zero vmohan1978 Excel Worksheet Functions 4 January 24th 10 07:29 AM
Add-in removal Rob Hoffy Excel Programming 4 April 8th 05 03:42 AM


All times are GMT +1. The time now is 12:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"