Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking if autofilter is on?
Hi there,
From a search of previous posts I found the code: activesheet.autofiltermode = false to switch off autofilter is it has been applied. This is good but would like to cycle round ALL sheet in the workbook and apply that lin of code. I tried Sub Test For each Sheet in ActiveWorkbook Sheet.AutofilterMode = False Next Sheet End Sub and also Sheet*s*.AutoFilterMode = False but neither worked. Hope somebody can help TIA Seamu -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking if autofilter is on?
Hi Seamus,
Sub Test() Dim sh As Worksheet For Each sh In ActiveWorkbook.Worksheets sh.AutoFilterMode = False Next End Sub --- Regards, Norman "SOS " wrote in message ... Hi there, From a search of previous posts I found the code: activesheet.autofiltermode = false to switch off autofilter is it has been applied. This is good but I would like to cycle round ALL sheet in the workbook and apply that line of code. I tried Sub Test For each Sheet in ActiveWorkbook Sheet.AutofilterMode = False Next Sheet End Sub and also Sheet*s*.AutoFilterMode = False but neither worked. Hope somebody can help TIA Seamus --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking if autofilter is on?
Sub test()
Dim sh As Worksheet For Each sh In ActiveWorkbook.Sheets sh.AutoFilterMode = False Next End Sub RBS "SOS " wrote in message ... Hi there, From a search of previous posts I found the code: activesheet.autofiltermode = false to switch off autofilter is it has been applied. This is good but I would like to cycle round ALL sheet in the workbook and apply that line of code. I tried Sub Test For each Sheet in ActiveWorkbook Sheet.AutofilterMode = False Next Sheet End Sub and also Sheet*s*.AutoFilterMode = False but neither worked. Hope somebody can help TIA Seamus --- Message posted from http://www.ExcelForum.com/ |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Checking if autofilter is on?
Thanks a lot for the prompt replies. Code works a treat.
Seamu -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
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) | |||
Spell Checking with checking cell notes | Excel Discussion (Misc queries) |