+ Reply to Thread
Results 1 to 2 of 2

Macro slows down as it runs

  1. #1
    Registered User
    Join Date
    08-15-2013
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Macro slows down as it runs

    Ok I have built this Macro with little knowleadge so any tips would be appriecated.

    the Macro gets the User to select the files to be used -it then saves the files with current date & time added to the name.

    It then searchs thru 3 sheets in 1 workbook to see if a record is found in the other workbook,

    If found it compares price to see if they are different

    changes price if different and then writes entries on both sheets accordingly

    these 3 sheets have 527 records, 1178 records & 25 records-IF i only search thru first sheet i can complete the updates in 5 mins on my laptop - 16 mins on my work PC

    but when i get the macro to switch to the other sheets to update it slows dramtically taking close to an hour to complete on my laptop at home -at work it takes 3 hrs!!!

    This is my code to update the first sheet -- to Do the others I simply set the correct price column and change the selected sheet then repeat the process.

    Any suggestion / corrections welcome

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Dean Staples; 08-30-2013 at 09:10 PM. Reason: cleaned up code to fit

  2. #2
    Registered User
    Join Date
    08-15-2013
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Macro slows down as it runs

    The Code shown looks at the first sheet only
    - i simply change my price variable and the active sheet then repeat the code above to do the next 2 sheets
    --in my attachment i have included the combined macro to step between sheets

+ 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 Worksheet slows dramatically after multiple runs
    By dklutzke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2013, 12:50 PM
  2. [SOLVED] Macro slows down with each successive run
    By hillbk in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2013, 11:45 PM
  3. [SOLVED] macro slows down
    By Gary Keramidas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2006, 07:45 PM
  4. [SOLVED] Macro slows down on subsequent runs
    By RWN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-24-2005, 09:05 PM
  5. Code slows down after a few runs
    By Diverse Computing in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2005, 12: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