+ Reply to Thread
Results 1 to 9 of 9

How to loop through massive data with fastest code

  1. #1
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    How to loop through massive data with fastest code

    Hi,
    I have this code to lookup some values. But number of rows of the data is over 30K, so it takes years to run.
    can help to advice what is the correct code to use instead?
    Besides, how to set password for the VBA code, so that users will not access to it?

    Thank you.

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: How to loop through massive data with fastest code

    I've seen people add:

    Please Login or Register  to view this content.
    to speed up things.

  3. #3
    Forum Contributor
    Join Date
    02-05-2015
    Location
    czech
    MS-Off Ver
    2010
    Posts
    172

    Re: How to loop through massive data with fastest code

    Perheaps the VBA is not best option. One way is to put all data in an array. Array size is limited so the data have to be chopped in smaller chunks by loop. Also when you delete row, in next iteration one row will be skipped. Its better to construct union of range then delete the union at the end.

  4. #4
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: How to loop through massive data with fastest code

    Something like this perhaps?

    No looping involved.
    Please Login or Register  to view this content.
    Please click the * below if this helps

  5. #5
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: How to loop through massive data with fastest code

    Hi all,
    Is there anyone able to help to advice a dynamic code. I'm also facing the same issue for copypaste the data to same worksheet as below.
    Please Login or Register  to view this content.
    I'm not in advance for VBA code, your help is much appreciated.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: How to loop through massive data with fastest code

    If this is a new question please open new thread.

  7. #7
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: How to loop through massive data with fastest code

    sure, but the previous issue not certain if anyone able to help?

  8. #8
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: How to loop through massive data with fastest code

    Did you actually try my suggestion... ?

  9. #9
    Registered User
    Join Date
    07-06-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: How to loop through massive data with fastest code

    Hi Jasper,
    Yes, I tried, but the formula is not working, I corrected the column etc, it is also not working.

+ 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. Replies: 1
    Last Post: 12-18-2014, 09:43 PM
  2. code slows down when forced to handle massive data
    By quickhoox in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-12-2014, 11:09 AM
  3. Copy and paste named range at end of loop causing massive slowdown over time
    By Sccye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-12-2013, 07:03 AM
  4. [SOLVED] fastest vba code to add (many) new rows into a protected table at the same time
    By jimmalk in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-23-2012, 07:23 AM
  5. Fastest code to copy a range down
    By skysurfer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-07-2010, 07:54 PM
  6. Fastest Loop Code?
    By Chard in forum Excel General
    Replies: 2
    Last Post: 05-29-2007, 11:17 AM
  7. Massive Array needed....in code
    By jasonsweeney in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-01-2005, 11:05 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