+ Reply to Thread
Results 1 to 2 of 2

Optimize for loop in order to win time

  1. #1
    Registered User
    Join Date
    07-16-2013
    Location
    Ho Chi minh
    MS-Off Ver
    Excel 2007
    Posts
    13

    Arrow Optimize for loop in order to win time

    Dear all,

    i am working on a huge excel document (10000 rows more than 80 columns)
    I code a macro to reduce the size of the document, and it is working, the problem is that my macro is really slow to update all the datas, and i don't know (yet) how to optimize my code to win some time.

    The document is quiet sensitiveBackgroung For loop optimizing.xlsx so i will just give you my code and a sample of the doc.
    Please Login or Register  to view this content.
    The code is working ( when the 1004 error doesn t want to show up) - please believe me.
    If someone as any suggestion to win time, please don't hesitate to answer.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    07-16-2012
    Location
    Ontario Canada
    MS-Off Ver
    Excel 2010
    Posts
    124

    Re: Optimize for loop in order to win time

    Use relative references to make all your formulas in one go.

    You have a whole bunch of something like
    Please Login or Register  to view this content.
    Instead you should do something like

    Please Login or Register  to view this content.

+ 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. [SOLVED] Loop thru files in chronological order
    By cokillerliu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2013, 10:02 AM
  2. [SOLVED] Order of controls in For Each Loop
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2005, 02:05 PM
  3. Nested loop order?
    By jclark419 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2005, 03:05 PM
  4. Optimize copy/paste loop
    By aldsv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-09-2005, 06:07 AM
  5. [SOLVED] Optimize VBA Excel 2003 NextFor loop
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-28-2005, 09:06 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