+ Reply to Thread
Results 1 to 7 of 7

Can I speed up this Autofilter Macro?

  1. #1
    Registered User
    Join Date
    04-26-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    31

    Can I speed up this Autofilter Macro?

    Hi All, I am in the process of filtering a data table of overtime over the past year for 190 staff (see attached sample for 10). I am trying to produce a list which shows each individuals overtime by rates for day and night shifts, what I have written (Sub StaffOT()) works but it is unbelievably slow. I hope there is a faster way but my skill level is not up to the task.

    Happy New Year to all


    54ed
    Attached Files Attached Files

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Can I speed up this Autofilter Macro?

    Try this-
    Results start "N3"
    NB:- This code Needs/Uses the "Staff" names in column "M" to Allocate the correct values. !!!
    Please Login or Register  to view this content.
    Regards Mick
    Last edited by MickG; 01-01-2015 at 10:37 AM.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Can I speed up this Autofilter Macro?

    Another:

    Please Login or Register  to view this content.

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

    Re: Can I speed up this Autofilter Macro?

    This takes very little time.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-26-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Can I speed up this Autofilter Macro?

    Hi Mick, I have just tested this with my full data and it works a treat and is practically instantaneous, fantastic. I will have to study more to understand how you have done it.

    Thanks very much, Ed

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

    Re: Can I speed up this Autofilter Macro?

    Modified for variable rows.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-26-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    31

    Re: Can I speed up this Autofilter Macro?

    Thanks also to stnkynts and davesexcel for you replies.

+ 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. Speed up a macro...
    By kokapelly in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-10-2013, 02:17 PM
  2. Speed Up Macro
    By jbmerrel in forum Excel General
    Replies: 4
    Last Post: 01-16-2012, 01:40 PM
  3. AutoFilter Speed Issue
    By rohansshetty7 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-30-2009, 01:50 AM
  4. Speed Up Macro
    By Pindacko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-30-2007, 12:06 PM
  5. Speed up macro
    By Duncan1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2007, 09:46 PM

Tags for this Thread

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