Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Can I check for a condition that if the sheet has auto filter for a row then it should deactivate....i.e. remove the auto filter and if not found then leave as it is. I tried Selection.Autofilter. Using this I can remove the auto filter if its present but if not there then it puts it! How can I check such a case Thanks Monika |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
'This shows all the data if the list os filtered
Sub test() With ActiveSheet If .FilterMode Then .ShowAllData End With End Sub 'This removes the autofilter altogether Sub test2() With ActiveSheet If .AutoFilterMode Then .AutoFilterMode = False End With End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "monika" wrote in message ... Can I check for a condition that if the sheet has auto filter for a row then it should deactivate....i.e. remove the auto filter and if not found then leave as it is. I tried Selection.Autofilter. Using this I can remove the auto filter if its present but if not there then it puts it! How can I check such a case Thanks Monika |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
thanks...!
"Rob van Gelder" wrote in message ... 'This shows all the data if the list os filtered Sub test() With ActiveSheet If .FilterMode Then .ShowAllData End With End Sub 'This removes the autofilter altogether Sub test2() With ActiveSheet If .AutoFilterMode Then .AutoFilterMode = False End With End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "monika" wrote in message ... Can I check for a condition that if the sheet has auto filter for a row then it should deactivate....i.e. remove the auto filter and if not found then leave as it is. I tried Selection.Autofilter. Using this I can remove the auto filter if its present but if not there then it puts it! How can I check such a case Thanks Monika |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel auto-filter does not filter certain columns | Excel Discussion (Misc queries) | |||
DataFilterAuto Filter in excel 2007? | New Users to Excel | |||
Excel 2007 Auto Filter Filter | Excel Discussion (Misc queries) | |||
Limit filter options in Auto Filter | Excel Discussion (Misc queries) | |||
Excel auto filter doesn't recoginize case - won't filter AA from A | Excel Discussion (Misc queries) |