+ Reply to Thread
Results 1 to 6 of 6

Get a code to run faster

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

    Get a code to run faster

    Hello everybody
    I have this code that do auto numbering
    The problem is that the code is very slow because of loop ..Is there a way to do the same task quickly?
    Please Login or Register  to view this content.

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

    Re: Get a code to run faster

    I tried this
    Please Login or Register  to view this content.
    Any suggestion about that? Is it Ok? or it need any modification? or is there another idea?

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Get a code to run faster

    Please Login or Register  to view this content.
    Last edited by jindon; 01-03-2015 at 08:42 PM.

  4. #4
    Forum Expert
    Join Date
    06-26-2010
    Location
    Austin, TX
    MS-Off Ver
    Excel 2010
    Posts
    1,673

    Re: Get a code to run faster

    You should also add
    Application.Screenupdating = False
    at the beginning of your code. Turn it back to True at the end. The screen update takes a lot of time.
    Pauley
    --------
    If I helped with your issue, I'd appreciate a rep bump (hit the '*' icon to the bottom left of this post).

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

    Re: Get a code to run faster

    Thanks a lot Mr. jindon for this short and effective code
    Thanks Mr.Pauleyb for the hint

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Get a code to run faster

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    screen updating on or off makes no essential difference to the speed of these codes. slows them down slightly if anything

+ 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. Can code run faster
    By leem in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-16-2010, 02:52 PM
  2. Need Code Critique. Is there a Better or Faster Way?
    By rdcnaz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-23-2010, 06:38 PM
  3. Amend code to run faster
    By SOS in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-05-2008, 10:09 AM
  4. I need faster code
    By mpeplow in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2007, 05:30 PM
  5. [SOLVED] Faster way to code this
    By jhahes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-06-2006, 12:08 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