+ Reply to Thread
Results 1 to 5 of 5

All possible combinations speed up code

  1. #1
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    All possible combinations speed up code

    Hello everyone
    I have this code that calculates all the possible combinations for the sum of specific numbers
    Please Login or Register  to view this content.
    It is working well but it took about 6 minutes (Is there a way to make it faster?)

    Thanks advanced for help
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: All possible combinations speed up code

    This seems a bit faster :
    Please Login or Register  to view this content.
    Last edited by karedog; 07-06-2017 at 10:03 AM.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

  3. #3
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: All possible combinations speed up code

    That's really awesome and fascinating .. Thank you very very much Mr. Karedog for this masterpiece
    Best and kind regards

  4. #4
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: All possible combinations speed up code

    You are welcome, thanks for marking the thread as solved and rep.points.
    As a guidance, you must avoid calling WorksheetFunction inside excessive loop, it takes a very big overhead.

    Regards

  5. #5
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,892

    Re: All possible combinations speed up code

    Quote Originally Posted by karedog View Post
    You are welcome, thanks for marking the thread as solved and rep.points.
    As a guidance, you must avoid calling WorksheetFunction inside excessive loop, it takes a very big overhead.

    Regards
    Thanks a lot for your useful guidance.. You are my savior all the time

+ 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] Help to speed up code
    By sintek in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2016, 08:47 AM
  2. Help to speed up code
    By Raffe in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 11-30-2016, 02:54 PM
  3. [SOLVED] To speed up the code
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-23-2016, 11:07 AM
  4. [SOLVED] VBA Delete Row Code - Need more efficient code to speed it up
    By matcapir in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2015, 04:32 PM
  5. Speed up code
    By ap1980 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-12-2012, 08:20 AM
  6. How to speed up code?
    By jp001 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-17-2009, 09:00 AM
  7. [SOLVED] Ned to speed up my code
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2006, 01:15 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