+ Reply to Thread
Results 1 to 5 of 5

Thread: Reduce Macro Time

  1. #1
    Registered User
    Join Date
    01-05-2011
    Location
    Milwaukee,Wisconsin
    MS-Off Ver
    Excel 2003
    Posts
    7

    Reduce Macro Time

    Background:
    So I have 20 procedure macro that does the following operations:
    Clears cells from sheets, open inputs files, copys input data, creates keys by using logical keys for expected and actual, compares expected and actual results by doing vlookup off of expected key - highlights wrong cells, highlights red duplicates of actual and expected in there sheets, and then lastly finds extra actuals that are not in expected sheet and copys that key in underneath all comparisons.

    Problem: Orginally it took 2.5 hours for the Macro to compare 20,000 rows from two input files.

    Now it takes 1h20min by:

     Application.ScreenUpdating = False
    
    Application.DisplayStatusBar = False
    
    Application.Calculation = xlCalculationManual
    
    Application.EnableEvents = False
    What else can I do to reduce the time to complete 20,000 rows from 1h20min to 20 - 30 min?

    Thanks(Let me know if you need code theres like 30 pages)
    Last edited by DonkeyOte; 01-05-2011 at 11:33 AM. Reason: CODE tags at all times please

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Apparently I can't say
    MS-Off Ver
    Apparently I can't say
    Posts
    8,274

    Re: Help Reduce Macro Time For 20,000 rows Takes 1 hr and 23min!

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. Expect cross-posts without a link to be closed a message will be posted by the moderator explaining why. We are here to help so help us help you!

    Read this to understand why we ask you to do this.

    Cross-posted here.

  3. #3
    Registered User
    Join Date
    01-05-2011
    Location
    Milwaukee,Wisconsin
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Reduce Macro Time

    My apologies I didn't realize that these were from the same website... I was under the assumption that mr.excel.com and excelforum.com were different forums and due to I had to regisiter to both.

  4. #4
    Forum Guru, retired Admin royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    25,640

    Re: Reduce Macro Time

    Read this to understand why we ask you to do this
    Hope that helps.

    RoyUK
    --------
    If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need

    For Excel Tips & Solutions, free examples and tutorials why not check out my downloads

    New members please read & follow the Forum Rules

    Remember to mark your questions Solved and rate the answer(s)

  5. #5
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    Apparently I can't say
    MS-Off Ver
    Apparently I can't say
    Posts
    8,274

    Re: Reduce Macro Time

    They are different forums but you still need to provide links.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0