+ Reply to Thread
Results 1 to 3 of 3

macro to release list filter

  1. #1
    Registered User
    Join Date
    09-14-2007
    Posts
    4

    macro to release list filter

    Hi all! I have a sheet that has multiple lists. I want to create a macro that, when pressed, will release all of the filters from all lists (same as clicking the filter arrow, then clicking all). I used the macro recorder, but the code it created doesnt quite work like I want. Does anyone know of any code that would do what I want? Thanks in advance.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if link helps

    http://www.contextures.com/xlautofilter03.html#All

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    09-14-2007
    Posts
    4
    Quote Originally Posted by VBA Noob
    Almost, but not quite. With that code, there are two problems:

    1. If the selected cell is not in the 'list' when the macro is run, then it doesnt release the filter.

    2. It only releases the filter that is in the current list. I need something that releases the filters in ALL lists.

    Any ideas?

+ 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