+ Reply to Thread
Results 1 to 5 of 5

Macro runs quick initially then bogs down after a few runs

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2016
    Posts
    313

    Macro runs quick initially then bogs down after a few runs

    I have a macro that uses a workbook to populate 2 other workbooks. It runs quickly when I first open the 3 workbooks (approx. 5 to 10 seconds). In my testing I run the macro several times when the source book changes. After approx. 3 or 4 runs the macro is exceedingly slow. My latest run was over 5 minutes and counting. I interrupted the flow and the macro was not in a continuous loop.

    I closed all 3 books, re-opened them and ran the marcro again in 5 to 10 seconds.

    Is there some command I need to run to reset a stack or something?

    Thanks for any advice.

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Macro runs quick initially then bogs down after a few runs

    Quote Originally Posted by pongmeister View Post
    ... command...to run .. reset ... or something?
    Try e.g. 'End' statement:
    Please Login or Register  to view this content.
    But this is not a forum for fairies and clairvoyants, give us any example.
    Maybe somewhere there are not reset arrays, variables, object assignments ?
    Maybe too many formulas in the cells of the worksheets ?
    Who knows ... abracadabra ...

  3. #3
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2016
    Posts
    313

    Re: Macro runs quick initially then bogs down after a few runs

    OK, good point - I've attached the 3 workbooks.

    The source workbook is; WebDownLoad.xlsm
    The first target workbook is: Tournament Register.xlsm and contains the macro: WebLoad
    The second target workbook is: Web Player List.xlsm
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,151

    Re: Macro runs quick initially then bogs down after a few runs

    many 'Select/Selection', external references, many modules ... module on the module ... and module for every occasion ...

  5. #5
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Jacksonville, Florida
    MS-Off Ver
    Excel 2016
    Posts
    313

    Re: Macro runs quick initially then bogs down after a few runs

    Thank You, I will cleanup the unused modules and mark this post closed

+ 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. VBA runs slow locally, runs fine when connected remotely
    By jbzy324 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2015, 10:05 PM
  2. Macro runs then will not run
    By Bewleys in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2014, 10:48 AM
  3. [SOLVED] Softball Runs for Runs against
    By firefight16 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2014, 07:47 PM
  4. Replies: 0
    Last Post: 08-16-2012, 01:32 PM
  5. Macro Runs but...
    By frozedog in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2010, 03:34 PM
  6. When a macro runs
    By goofy78270 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-31-2007, 07:37 PM
  7. Which Macro Runs...?
    By Bill Martin in forum Excel General
    Replies: 7
    Last Post: 09-29-2005, 08:05 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