+ Reply to Thread
Results 1 to 5 of 5

Make Excel 'remember' filters?

  1. #1
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    462

    Make Excel 'remember' filters?

    Hi There,

    was wondering if someone could tell me how to make Excel 'Remember' what filters were on before a macro is run?

    We have a sheet and people are setting their own filters all the time but when it comes time to run the macro, it needs to remove their filters and set its own. Ideally I would like it to return the previous filters so everyone is happy!

    Any help is appreciated.

    Thanks

    John

  2. #2
    Registered User
    Join Date
    08-24-2007
    Posts
    35
    if you have a predefined filter set you could get your macro to reset all the filters and then re-filter the data how you want it and then run its macro after all this has been accomplished.

    if ya need any help post an example of the spreadsheet.

    hth

  3. #3
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    462
    Hi Justin,

    thanks for the reply. Unfortunately, the filters will most likely be different every time the macro is run so that wouldn't work.

    John

  4. #4
    Registered User
    Join Date
    09-22-2003
    Posts
    9
    Hi,
    maybe you can create CustomView and (after your macro) restore filters from this view.

    Please Login or Register  to view this content.

    Jarek

  5. #5
    Forum Contributor
    Join Date
    07-07-2005
    Location
    England
    MS-Off Ver
    Office 2019 Enterprise
    Posts
    462
    Hi Jarek,

    finally had chance to come back to this and test.

    Works perfect so thanks very much for your help.

    John

+ 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