Problem with autofilter...

jenrique.cerda

Board Regular
Joined
Sep 22, 2006
Messages
53
Hi, is there a way to set autofilter as on or of???

Something like Autofilter=False or true???

Thanks...
 

Some videos you may like

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

texasalynn

Well-known Member
Joined
May 19, 2002
Messages
8,458
not really but you could have it turn on/off with the
ActiveCell.Offset(0, 0).Range("A1").AutoFilter
 

jenrique.cerda

Board Regular
Joined
Sep 22, 2006
Messages
53
but how does this works???
does it detects wether if the filter is tunred on or off???

I just need to save af file without the autofilter..... a user may save this file with the autofilter turned on but once i run my routine, there is a part that opens this file and has to save it turned off...
 

Emjaye

Board Regular
Joined
Oct 3, 2003
Messages
89
Hi

You can kinda do it - assuming you cell with the autofilter is applied in is ("E7"), if you activate this line of code

Code:
 Range("e7").AutoFilter Field:=1

perhaps using a workbook or worksheet event, it set the autofilter back to "field 1" which is effectively resetting it.
 

Krishnakumar

Well-known Member
Joined
Feb 28, 2003
Messages
2,615
Hi,

May be something like..

Code:
If ActiveSheet.AutoFilterMode = True Then
    'your code here
Else
    'your code here
End If
 

Watch MrExcel Video

Forum statistics

Threads
1,113,848
Messages
5,544,640
Members
410,627
Latest member
georgealice
Top