+ Reply to Thread
Results 1 to 6 of 6

Chek sum very slow code

  1. #1
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,282

    Chek sum very slow code

    i have data in col E until 6000 row , i must part range become Set r = .Range("E1:E200").Resize(, 2)
    if use Set r = .Range("E1:E6000").Resize(, 2) code can not to run
    my problem is if in columns(F) example value = 10
    and i want to chek in columns(E) is result = 10
    for example in e10 = 5 and e 11 = 5
    then in col G after makro run = E10 + E11
    this is my code
    Please Login or Register  to view this content.
    and this is myfile

    HOW TO FASTER MY CODE PLEASE HELP
    Attached Files Attached Files
    "ThankyouFor Attention * And Your Help!!"

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,304

    Re: Chek sum very slow code

    Where did the code come from ??????????
    Variable declarations look dodgy and do not hold any values during runtime.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Chek sum very slow code

    Can you explain the overall object of the exercise and how the results in column G relate to the original data - in laymans terms - I know they relate in some way since the macro is using an algorithm.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Chek sum very slow code

    Hello daboho,

    The macro only takes about 7 seconds on my machine. I have to say given all the calculations needed to produce the table that is not an uncomfortably long or excessive wait

    On a side note, the code looks like it was written by Jindon.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  5. #5
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,282

    Re: Chek sum very slow code

    Try change and run code is very slow and long to run
    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,282

    Re: Chek sum very slow code

    Richard
    ex : in F2 = 100
    First loop for col F = F2
    And in col E Search value if sum 2 cells in cols(e) = F2
    For exampe in e20 = 30 ,and in e10= 70
    And result in col G2= E10 + E20
    And search agaian is result sum = F2
    Ex : e5 = 60,e8= 10
    H2 = e5 + e8...etc
    After loop F2 next to F3
    ....until lastrow in col F

+ 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. Slow macro, slow pc or wrong code?
    By corky81 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-24-2018, 05:58 AM
  2. [SOLVED] VBA code help (current code too slow and freezes)
    By xxsinghxx in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-13-2017, 05:22 PM
  3. Slow code- making code more efficient
    By ammartino44 in forum Excel General
    Replies: 4
    Last Post: 05-06-2015, 12:47 PM
  4. [SOLVED] Vba code makes workboos slow. Any alternate code ??
    By satputenandkumar0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-23-2014, 04:30 AM
  5. [SOLVED] Hide_Unhide using Chek Box
    By tharindudk in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-20-2014, 08:08 PM
  6. Slow code
    By luizdeh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2011, 01:55 PM
  7. Why is this code slow?
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-16-2010, 02:05 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