+ Reply to Thread
Results 1 to 3 of 3

Speeding Up Code

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Speeding Up Code

    Hi. I have the following code but it runs rather slow as there is about 1500 rows. Any idea how to speed it up? Macro looks at sheet F and sheet CG and if a certain few cells exists already in sheet CG that is in sheet F, then this deletes the row from sheet F

    Please Login or Register  to view this content.
    Last edited by ScabbyDog; 03-25-2013 at 11:52 AM.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Speeding Up Code

    a loop within a loop will normally be relatively slow and deleting one row at a time will also be slow. the delete can be improved using
    Please Login or Register  to view this content.
    if that is still too slow it ought to be possible to improve the searching too
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Speeding Up Code

    Yeah it's still too slow

  4. #4
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Speeding Up Code

    Actually the above speeds it up! It's this code that seems to be slowing it down.

    Please Login or Register  to view this content.

  5. #5
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Speeding Up Code

    Can the above code be quickened up?

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Speeding Up Code

    exact same principle
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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