+ Reply to Thread
Results 1 to 4 of 4

Way to speed up VBA code

  1. #1
    Registered User
    Join Date
    08-11-2007
    Posts
    44

    Way to speed up VBA code

    Are there any methods to speed up the execution of VBA code.
    I assume that the algorithms used cannot be improved anymore.

    Would it be possible for example to transfer the code to a VB project and compile it? Would that be (sometimes) useful? Would that bring further problems?

    Other methods?

  2. #2
    Forum Contributor
    Join Date
    07-05-2007
    Location
    Lexington, MA
    Posts
    302

    ScreenUpdating Property for faster macros

    You could look at the VBA doc on the ScreenUpdating Property. Macros that alter the worksheet run much faster if you turn off display updating while the macro is running.
    FrankBoston is the pen name for Andrew Garland, Lexington MA

  3. #3
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    have a look at

    http://www.ozgrid.com/VBA/SpeedingUpVBACode.htm
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    One of the biggest mistakes that I see on the Forums is unnecessary Selecting or Activating of Ranges, Worksheets and Workbooks. This is rarely needed and slows code down.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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