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


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


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Remove Autofilter

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


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Remove Autofilter

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
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
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
How to Sort within AutoFilter with Protection on (and AutoFilter . giblon Excel Discussion (Misc queries) 1 February 16th 06 12:23 PM


All times are GMT +1. The time now is 12:22 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"