+ Reply to Thread
Results 1 to 5 of 5

excel works slowly when filter

  1. #1
    Registered User
    Join Date
    01-28-2015
    Location
    Romania
    MS-Off Ver
    2007
    Posts
    3

    excel works slowly when filter

    Hello guys,

    I have a problem with an excel file and I cannot find a solution.
    So I have a sheet with 3500 rows and a macro that completes columns AG,AI and AK based on value from column D.Macro will launch every time a value in column D is changed (I'm using function Worksheet_Change(ByVal Target As Range) ).
    Everything works perfect except when I filter the rows. When I filter by an unique value (so only a row remains in my selection), the macro works very slow. And not only the macro, even if I try to select that row, the excel moves slowly.
    If I filter by a multiple value (for example remains 5-6 rows), only on the last row or last two rows macro and selection works slowly.
    I'm not an expert in excel and I cannot find the problem. Why an excel would work slowly only on filtering and only on some specific rows? That make sense for somebody?

    Thanks in advance
    Marius

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: excel works slowly when filter

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    01-28-2015
    Location
    Romania
    MS-Off Ver
    2007
    Posts
    3

    Re: excel works slowly when filter

    Ok, so I've uploaded an example.
    First case is when the filer for column B(FG) is not set and all the rows are shown. So if I write a value in column D, for example, you will see that columns AG,AI and AK completes automatically based on a macro.
    The second case is when I filer column B.So I go to text filter, select contains and write for example BARK5803100P-LF-M02 . Now if I change value in column D, the columns AG,AI and AK will update very slow.
    The third case is if I filter column B for contains lets say BARK5.Now if I change the value from column D for the first rows, everything works perfect. But if I change it for the last row, it works very slow again. The same thing even if I try to select some cells from that row(so no macro implied).

    I hope that I was clear.
    Thanks again
    Attached Files Attached Files

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: excel works slowly when filter

    You have merged cells in the filter range!

  5. #5
    Registered User
    Join Date
    01-28-2015
    Location
    Romania
    MS-Off Ver
    2007
    Posts
    3

    Re: excel works slowly when filter

    Yes, I have. But why the excel works slowly only on the last row? And how can overcome this problem without unmerge?

+ 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(VBA) works too much slowly in excel 2013
    By piyushmerja in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 11-13-2014, 07:45 AM
  2. Excel vba run macro slowly
    By niwat2811 in forum Excel General
    Replies: 0
    Last Post: 08-20-2012, 10:09 AM
  3. Excel Docs Open Slowly
    By KellyD1958 in forum Excel General
    Replies: 1
    Last Post: 06-25-2010, 03:05 PM
  4. Excel responding slowly
    By Roger Denison in forum Excel General
    Replies: 3
    Last Post: 09-01-2005, 03:05 PM
  5. [SOLVED] Excel 97 files open very slowly
    By Mike P. in forum Excel General
    Replies: 1
    Last Post: 08-29-2005, 07:05 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