+ Reply to Thread
Results 1 to 3 of 3

HOW to make sub run more quickly

  1. #1
    EXCEL NEWS
    Guest

    HOW to make sub run more quickly

    hi,

    someone tells me, you should minimize the window of excel , when you run
    your vba subs,

    is that true,

    why

    thanks


  2. #2
    Registered User
    Join Date
    03-31-2006
    Posts
    24
    Do you use the following in your Macro? I found this speeds up the process on my Macros.

    With Application
    .ScreenUpdating = False

    'Your Code

    .ScreenUpdating = True

    End With

  3. #3
    Kim Greenlee
    Guest

    Re: HOW to make sub run more quickly

    In addition to Bob's suggestion you should also look at the subroutine
    itself. If it's taking a long time then you may be able to do some
    optimization, this site has some good tips and tricks:
    http://www.cpearson.com/excel/optimize.htm

    You can do some performance testing yourself to see what part of your
    subroutine is taking the longest and focus your efforts there.

    Then, if you've applied all the optimization options and 1) the subroutine
    is still taking a long time and 2) there are parallelizable processing
    happening then you might want to consider modifying the workbook to run on a
    grid. You can find more about that at www.digipede.net. The Excel white
    paper will be available soon, but you can see here:
    http://krgreenlee.blogspot.com/2006/...741944546.html the process I went through to grid-enable a long-running workbook.

    Good luck,

    Kim Greenlee

    --
    digipede - Many legs make light work.
    Grid computing for the real world.
    http://www.digipede.net
    http://krgreenlee.blogspot.net


+ 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