+ Reply to Thread
Results 1 to 5 of 5

Excel VB Macro Acceleration

  1. #1
    Registered User
    Join Date
    05-28-2017
    Location
    houston
    MS-Off Ver
    windows 7 excel
    Posts
    1

    Excel VB Macro Acceleration

    I am trying to accelerate my Excel VB Macro. I have tried the 5 alternatives below. I wonder if I can shorten the execution time further.
    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #3 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer
    Last edited by 6StringJazzer; 05-28-2017 at 11:50 AM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Excel VB Macro Acceleration

    I would use this.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Valued Forum Contributor
    Join Date
    04-24-2014
    Location
    United States
    MS-Off Ver
    Office 365 ProPlus
    Posts
    853

    Re: Excel VB Macro Acceleration

    Another good one to speed things up is turn off the AutoCalculation. Set to Manual and then back to Automatic when your done.

    Application.Calculation = xlCalculationManual

    Application.Calculation = xlCalculationAutomatic

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,705

    Re: Excel VB Macro Acceleration

    Quote Originally Posted by ptmuldoon View Post
    Another good one to speed things up is turn off the AutoCalculation.
    Good advice although I'm not sure it will help with just a copy & paste operation.

    In fact a copy & paste should be pretty fast unless there is a massive amount of data and formulas.

  5. #5
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Excel VB Macro Acceleration

    How about this ?
    Should be faster since it only copies usedrange instead of entire sheet.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. Replies: 1
    Last Post: 08-04-2015, 11:35 PM
  2. [SOLVED] Macro Processing Time Acceleration
    By ofd2008 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-23-2014, 06:01 AM
  3. Replies: 2
    Last Post: 11-26-2012, 08:33 AM
  4. Replies: 5
    Last Post: 06-14-2012, 09:00 AM
  5. Help with acceleration formula for excel 2010
    By crice in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-13-2011, 08:03 PM
  6. Acceleration question.
    By Cactus in forum Excel General
    Replies: 3
    Last Post: 02-28-2006, 03:10 AM
  7. How do I prepare a debt acceleration worksheet in Excel?
    By AM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-16-2005, 01:15 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