![]() |
Autofilter
Hi all.
Is there some way to determine if the autofilter is on? I have a button to display all data, but i want to exit the sub if the data is not filtered. Hope you understand what i'm trying to say. Thanx in advance. |
Autofilter
LD,
Sub testit() If Not Worksheets(1).AutoFilterMode Then Exit Sub MsgBox "Autofilter is active" End Sub Rob "LD" wrote in message ... Hi all. Is there some way to determine if the autofilter is on? I have a button to display all data, but i want to exit the sub if the data is not filtered. Hope you understand what i'm trying to say. Thanx in advance. |
Autofilter
Sorry for not explaining it very well.
The autofilter is always on. ..EnableAutoFilter = True I want to test if the data in the list is filtered or not. Thanx again. "LD" wrote in message ... Hi all. Is there some way to determine if the autofilter is on? I have a button to display all data, but i want to exit the sub if the data is not filtered. Hope you understand what i'm trying to say. Thanx in advance. |
Autofilter
This previous posting by Colo may help:
http://groups.google.co.nz/groups?hl...rum-nospam.com "LD" wrote in message ... Sorry for not explaining it very well. The autofilter is always on. .EnableAutoFilter = True I want to test if the data in the list is filtered or not. Thanx again. "LD" wrote in message ... Hi all. Is there some way to determine if the autofilter is on? I have a button to display all data, but i want to exit the sub if the data is not filtered. Hope you understand what i'm trying to say. Thanx in advance. |
Autofilter
If Not ActiveSheet.AutoFilterMode Then Exit Sub
Leo On Fri, 2 Jan 2004 11:21:31 +0200, "LD" wrote: Hi all. Is there some way to determine if the autofilter is on? I have a button to display all data, but i want to exit the sub if the data is not filtered. Hope you understand what i'm trying to say. Thanx in advance. |
Autofilter
if ActiveSheet.FilterMode then
msgbox "Data is filtered" End if From help on FilterMode This property is True if the worksheet contains a filtered list in which there are hidden rows. -- Regards, Tom Ogilvy LD wrote in message ... Sorry for not explaining it very well. The autofilter is always on. .EnableAutoFilter = True I want to test if the data in the list is filtered or not. Thanx again. "LD" wrote in message ... Hi all. Is there some way to determine if the autofilter is on? I have a button to display all data, but i want to exit the sub if the data is not filtered. Hope you understand what i'm trying to say. Thanx in advance. |
All times are GMT +1. The time now is 03:59 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com