+ Reply to Thread
Results 1 to 5 of 5

Very slow autofilter

  1. #1
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    304

    Very slow autofilter

    I have a pretty big spreadsheet with over 10k rows.
    I normally auto filter one of the columns in order to see the rows that I need to look at. That's normally not taking more than 3-4 seconds, but when I try to remove the filter it can take up to 20 seconds if not more. The thing I noticed is that if I click on the spreadsheet or hit the break key, the "undo filter" operation is done more or less instantly, and I don't see any "side effects" to this.
    I was wondering if I could add this "break" within the macro that triggers the "undo filter" , so that I won't have to press Break everytime I run it.
    I know it's dumb, but I can't think of better solutions and I've grown white hairs from waiting 30 seconds every time I use the filter.
    The Macro is very basic,
    Please Login or Register  to view this content.
    Last edited by bibu; 03-19-2014 at 04:16 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Very slow autofilter

    Dont see the point to scroll one by one columns (this has been registered but do you really need it?

    May be change all the content of your macro to:
    Please Login or Register  to view this content.
    (leaves filter on but clears all criteria)
    or
    Please Login or Register  to view this content.
    (swithes filter off completly)
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    304

    Re: Very slow autofilter

    WOW, thanks! The second solution works great. Much smoother.
    No I don't need to select the columns one by one.. but that's how the macro recorder memorized the macro. And I have't changed it because I'm bad at VBA..
    Can something similar be done for the "Filter" macro?
    It's filtering by the Q column and then sorting by date - newest to oldest

    Please Login or Register  to view this content.

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Very slow autofilter

    For sure you can delete again both scrollcolumn
    the next thing - almost always what is recorded as:

    Please Login or Register  to view this content.
    can be done as
    Please Login or Register  to view this content.
    the alst thing - if a lot "happens on screen" it is wise idea to switch off screen updating during macro.

    So - try changing your macro to:
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    08-04-2013
    Location
    Bucharest
    MS-Off Ver
    Office Professional Plus 2019
    Posts
    304

    Re: Very slow autofilter

    Wonderful, thanks a million!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro is running real slow and makes navigating the worksheet really slow after execution.
    By MichWolverines in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2013, 04:29 PM
  2. [SOLVED] slow computer (slow clipboard) breaks my macro
    By twilsonco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-05-2013, 09:16 PM
  3. Replies: 4
    Last Post: 03-16-2013, 08:33 AM
  4. Capturing the Excel AutoFilter Sorting Event-sort and autofilter options
    By Kognyto in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2008, 05:36 PM
  5. [SOLVED] AutoFilter Best Practice when used in large files (slow system dow
    By Dennis in forum Excel General
    Replies: 2
    Last Post: 02-17-2006, 03:55 PM

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