+ Reply to Thread
Results 1 to 3 of 3

code slows down when forced to handle massive data

  1. #1
    Registered User
    Join Date
    09-10-2014
    Location
    Berlin
    MS-Off Ver
    2013 64bit
    Posts
    2

    Question code slows down when forced to handle massive data

    I am sitting in front of some vba codes I have written with a friend of mine. We have a lot of data and are stucked with the performance. Maybe one of you can help us.

    We are running a macro mainly based on array formulas with a lot of references a look ups to different cells. For example we have this code, which runs quite fast ( ~ 20 sec.) with 10k data but slows down to > 4 min. with 30k data. Does anyone have an idea what the problem is or how to solve?

    I hope we have written the code appropriate:

    Please Login or Register  to view this content.
    Last edited by quickhoox; 09-12-2014 at 11:07 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: code slows down when forced to handle massive data

    Please wrap your code in code tags.

    Edit the post, select the code, and press the # button

    At first glance I would say set this to false at the beginning of the code. You have it set to true at the start AND at the end, should be false at the start.
    Application.ScreenUpdating = True

    It will go a lot faster.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Registered User
    Join Date
    09-10-2014
    Location
    Berlin
    MS-Off Ver
    2013 64bit
    Posts
    2

    Re: code slows down when forced to handle massive data

    Thanks for the tip. quite convneient the # botton.

    Yes, we had the application screen updating as False. little mistake while copy paste

+ 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. Speed up macro - shapes slows code
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-17-2014, 01:29 PM
  2. [SOLVED] VBA code suddenly slows Excel to a crawl...
    By Taemex in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-11-2013, 11:46 PM
  3. Massive Array needed....in code
    By jasonsweeney in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-01-2005, 11:05 AM
  4. [SOLVED] Code slows down after a few runs
    By Diverse Computing in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-21-2005, 12:05 AM
  5. [SOLVED] PrintPreview slows Code Execution
    By Don Lloyd in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-06-2005, 08: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