+ Reply to Thread
Results 1 to 5 of 5

how to speed up macro code execution?

  1. #1
    Registered User
    Join Date
    09-30-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    22

    Question how to speed up macro code execution?

    Hi friends,

    I am executing a macro code which containing a large data (approx 5000 cells),the problem is the execution of macro is too slow...can any one please help me out to speed up the macro execution.I have already used the screen updating option false intialy.

    Any help will be appreciated.Thanks in advance.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: how to speed up macro code execution?

    Hi,

    please post your code, it will be easier to help you

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: how to speed up macro code execution?

    Screen updating won't work alone.

    If your code incluses unnecessary Selecting, Activating or Loops this will slow execution considerably.

    Also, if the is a large number of calculations in the sheet then switching Calculation to manual will help
    Hope that helps.

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

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    09-30-2010
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    22

    Re: how to speed up macro code execution?

    sry friend ,

    I cant publish the code for sme confidential issues.If u can just tell me any process or command that will make the code execution fast,It will be highly appreciated.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,202

    Re: how to speed up macro code execution?

    How can code be confidential/ Anyway without seeing the code I've posted some suggestions

+ 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