+ Reply to Thread
Results 1 to 4 of 4

Make this code more efficient and faster

  1. #1
    Registered User
    Join Date
    06-03-2014
    MS-Off Ver
    2007
    Posts
    87

    Make this code more efficient and faster

    This code is pretty simple but when I run it, it takes a good five minutes to see the results because there is a lot of sheets and cells.

    Can this code be simplified to be executed faster?

    Please Login or Register  to view this content.
    Last edited by SIMBAtheCAT; 06-30-2014 at 10:56 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Make this code more efficient and faster

    application.calculation=xlcalculationmanual at the start
    and
    application.calculation=xlcalculationautomatic at the end.


    Wrap the formula in error traping to stop the 2nd loop
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Make this code more efficient and faster

    This might be faster:

    Please Login or Register  to view this content.
    Remember what the dormouse said
    Feed your head

  4. #4
    Registered User
    Join Date
    06-03-2014
    MS-Off Ver
    2007
    Posts
    87

    Re: Make this code more efficient and faster

    Both ideas work!

    Thank you, it is appreciated.

+ 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] Make a macro more efficient/faster
    By jhonneyboy in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 06-25-2014, 05:38 PM
  2. [SOLVED] Edit code to be faster, more efficient.
    By rocksan in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2012, 02:45 AM
  3. How to make VBA code more efficient?
    By globulous in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2010, 12:02 PM
  4. Make code more efficient
    By allanr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-29-2008, 08:43 PM
  5. How can I make this code more efficient?
    By Sethaholic in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2006, 12:20 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