+ Reply to Thread
Results 1 to 9 of 9

Macro Processing Time Acceleration

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Macro Processing Time Acceleration

    Hi,
    Macro code is calculating value to 347884 cells. Macro doesn't have any trouble, it is running but the process takes too long time.
    Can we make an arrangement to reduce the time?
    Code:
    Please Login or Register  to view this content.
    Thank you helping.
    Regards.
    Attached Files Attached Files

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,247

    Re: Macro Processing Time Acceleration

    Try this and please verify the results before using it in production!
    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Macro Processing Time Acceleration

    Thank you very much.
    It took 10 seconds.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,247

    Re: Macro Processing Time Acceleration

    Does the data look correct?

  5. #5
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Macro Processing Time Acceleration

    Yes, data look correct. Only l change this code (Case "DO", "ĘD", "TO", "ĘT") to (Case "DO", "İD", "TO", "İT")

  6. #6
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Macro Processing Time Acceleration

    Hi romperstomper,
    Code is working perfect but l don't use this code in my another code.
    Example:
    Cells(2, B) is changing with ColumnData(1, B) as in code.
    but When l change Cells(1, B) to ColumnData(0, B). Macro is not working.

    Another Old slow code:
    Please Login or Register  to view this content.
    New Code but it is not working.
    Please Login or Register  to view this content.

    Thank you for your helping.
    Regards

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,247

    Re: Macro Processing Time Acceleration

    You have only loaded rows 2 to 5 into ColumnData so you need to change this line:
    Please Login or Register  to view this content.
    to this:
    Please Login or Register  to view this content.
    and then do not subtract one from the indices when using ColumnData, so Cells(1, B) is replaced with ColumnData(1, B)

  8. #8
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Lightbulb Re: Macro Processing Time Acceleration


    Edit : misreading of source range, my tip does not apply in this case …
    Last edited by Marc L; 09-23-2014 at 04:38 AM.

  9. #9
    Registered User
    Join Date
    02-25-2014
    Location
    Turkey
    MS-Off Ver
    Excel 2010
    Posts
    77

    Re: Macro Processing Time Acceleration

    Thank you so much.
    Nice Day.
    Last edited by ofd2008; 10-02-2014 at 04:30 AM.

+ 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. Reduce processing time for processing multiple excel sheets
    By rexer231 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-06-2014, 09:25 AM
  2. Macro which delays for processing time
    By freud1 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-05-2012, 07:04 AM
  3. Replies: 5
    Last Post: 06-14-2012, 09:00 AM
  4. Calculate processing time with fixed time paramaters
    By Apel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-01-2009, 08:54 AM
  5. Macro processing time is very slow
    By Foxcan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2009, 11:44 PM

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