+ Reply to Thread
Results 1 to 4 of 4

Long macro process time for deleting rows

  1. #1
    Registered User
    Join Date
    07-31-2019
    Location
    London, England
    MS-Off Ver
    Excel 2016 64-bit
    Posts
    5

    Long macro process time for deleting rows

    Hi there,

    I need some help with shorting a macro run time to prevent Excel crashing. I am running on 64-bit on a newish i7 with 16Gb RAM so I don't think it's a hardware issue.

    The macro I am running is below.

    Please Login or Register  to view this content.
    Currently the script takes nearly an hour to run and frequently hangs or stops Excel responding. I want to find a way to shorten the process such as only removing zeros from the rows which have fields instead of look at all rows up to 20000. As the data set varies in size this arbitrary row 20000 as we don't anticipate row usage to go above this level for the time being.

    If someone can give me some pointers as to how to speed this up that would be great.
    Last edited by WoolyFox; 08-30-2019 at 09:58 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Long macro process time for deleting rows

    How about
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-31-2019
    Location
    London, England
    MS-Off Ver
    Excel 2016 64-bit
    Posts
    5

    Re: Long macro process time for deleting rows

    Thanks! This works perfectly dropping the run time from 30 minutes to 30 seconds. I am only just starting out with VBA so still learning about these functions. Thanks again for this script.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,104

    Re: Long macro process time for deleting rows

    You're welcome & thanks for the feedback

+ 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. Strange case: deleting columns takes long time
    By JackBauer in forum Excel General
    Replies: 4
    Last Post: 08-29-2019, 01:36 AM
  2. Deleting rows in a table takes way too long
    By ArnolddG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-27-2018, 03:04 PM
  3. Is a very long, multi-step macro a good process?
    By Kjelgaardblack in forum Excel General
    Replies: 3
    Last Post: 10-03-2017, 04:49 AM
  4. Vlookup taking a long time to process
    By kelvin156 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2015, 05:05 AM
  5. Macro takes a long time to run, can this process run quicker?
    By club rat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2014, 02:26 PM
  6. How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2005, 06:06 AM
  7. [SOLVED] How to count process running time ( process not finished)
    By miao jie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2005, 02:06 AM

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