Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I want to remove Autofilter from all sheets of my workbook. No matte whatever the ranges the sheet might have. At present i m trying this... Code ------------------- For Each sh In ActiveWorkbook.Worksheets ' Open hidden sheet If sh.Visible < xlSheetVisible Then sh.Visible = True sh.EnableAutoFilter = False End If sh.EnableAutoFilter = False Next s ------------------- But it does not remove for all... Please help -- ilyaskaz ----------------------------------------------------------------------- ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396 View this thread: http://www.excelforum.com/showthread.php?threadid=40192 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() which ones does it not remove from -- gearo ----------------------------------------------------------------------- gearoi's Profile: http://www.excelforum.com/member.php...fo&userid=2657 View this thread: http://www.excelforum.com/showthread.php?threadid=40192 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi ilyaskazi
Use AutoFilterMode Sub test() Dim curVis As Long Dim sh As Worksheet For Each sh In ThisWorkbook.Worksheets With sh curVis = .Visible .Visible = xlSheetVisible .AutoFilterMode = False .Visible = curVis End With Next sh End Sub -- Regards Ron de Bruin http://www.rondebruin.nl "ilyaskazi" wrote in message ... I want to remove Autofilter from all sheets of my workbook. No matter whatever the ranges the sheet might have. At present i m trying this... Code: -------------------- For Each sh In ActiveWorkbook.Worksheets ' Open hidden sheet If sh.Visible < xlSheetVisible Then sh.Visible = True sh.EnableAutoFilter = False End If sh.EnableAutoFilter = False Next sh -------------------- But it does not remove for all... Please help. -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=401925 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() What does these all 3 option means actually??... 1- EnableAutoFilter 2- FilterMode 3- AutoFilterMod -- ilyaskaz ----------------------------------------------------------------------- ilyaskazi's Profile: http://www.excelforum.com/member.php...fo&userid=2396 View this thread: http://www.excelforum.com/showthread.php?threadid=40192 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi ilyaskazi
In the VBA editor select EnableAutoFilter or FilterMode or AutoFilterMode in the code And press F1 You get all the information you need -- Regards Ron de Bruin http://www.rondebruin.nl "ilyaskazi" wrote in message ... What does these all 3 option means actually??... 1- EnableAutoFilter 2- FilterMode 3- AutoFilterMode -- ilyaskazi ------------------------------------------------------------------------ ilyaskazi's Profile: http://www.excelforum.com/member.php...o&userid=23969 View this thread: http://www.excelforum.com/showthread...hreadid=401925 |
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) | |||
2007 Autofilter worse than 2003 Autofilter | Excel Discussion (Misc queries) | |||
How to Sort within AutoFilter with Protection on (and AutoFilter . | Excel Discussion (Misc queries) |