Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Toggling one column of AutoFiltering

I have a macro that sets different columns criteria for Autofiltering,
and I have buttons set up on the button bar to activate each macro.

What I would like to do is change the code so that each time I click
the button, that paricular criteria would either be turned on or off,
depending on it's current value. I have included a sample of one of
the macros below.

Sub Add_GreenZone()
'filter for the GREEN zone
If Not ActiveSheet.AutoFilterMode Then ' turn on autofilter if it
is off
ActiveSheet.Range("a1").AutoFilter
End If
Selection.AutoFilter Field:=8, Criteria1:="Green" ' set the
criteria
End Sub

So I think what I need it the ability to see if a particular column
has a filter applied.

Any help would be appreciated.

Mike
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
Help with toggling display Tom Excel Discussion (Misc queries) 3 June 28th 09 12:55 PM
Toggling Visibility of items with VBA SpielbergRules Excel Worksheet Functions 3 July 2nd 06 06:12 PM
toggling jlofritts Excel Worksheet Functions 3 March 7th 06 06:34 PM
Multiple Column AutoFiltering Peter Crickman Excel Worksheet Functions 1 October 12th 05 05:06 PM
Toggling autofit rgarber50 Excel Discussion (Misc queries) 2 September 4th 05 07:40 AM


All times are GMT +1. The time now is 08:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"