+ Reply to Thread
Results 1 to 6 of 6

Apply a filter alert to "button"

  1. #1
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Apply a filter alert to "button"

    I have 5 columns with an auto filter applied using the code below. I also have a form button in each column to reset the filter. What I would like is to have the form button turn "red' when the filter is applied and return to the orginal color when the filter is removed.

    If it takes something other than a "form" button that is fine. I am looking for 2 "buttons" one to apply the filter, the other to alert you that the filter has been applied and to reset the filter when clicked.

    I hope this is clear enough.

    Apply Filter Code



    Please Login or Register  to view this content.

    Reset Filter Code


    Please Login or Register  to view this content.

    Thanks Jim O
    Last edited by Jogier505; 11-21-2009 at 03:29 PM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Apply a filter alert to "button"

    Here is a pointer. See what you do with it. I use
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Apply a filter alert to "button"

    You can use a single button (I assumed an autoshape) and toggle between filtered and unfiltered:
    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Re: Apply a filter alert to "button"

    I have been fussing with this for a while amd still have not been able to achive what I would like. Here is a sample sheet of what I have and what I am looking for.

    Thanks, Jim O
    Attached Files Attached Files

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Apply a filter alert to "button"

    Hello Jim,

    I replaced your "button" with an Control ToolBox Push Button. It changes colors from red to green and calls your macros to filter column G. Here is the code for the push button. The button and code have been added to the attached workbook.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  6. #6
    Forum Contributor
    Join Date
    09-09-2009
    Location
    Columbus. Ohio
    MS-Off Ver
    Excel 2000
    Posts
    199

    Re: Apply a filter alert to "button"

    Leith,

    It works beautifully. That is just what I was trying to achive.

    Thank you all for your time and input.

    Jim O

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1