+ Reply to Thread
Results 1 to 8 of 8

Make Macro Run Faster ?

  1. #1
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Make Macro Run Faster ?

    Thank you for your time ...

    Do you know how to edit the following macro so it processes the data faster ? There are 79,299 rows to be updated with the current time.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,522

    Re: Make Macro Run Faster ?

    Something like this for starters.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,978

    Re: Make Macro Run Faster ?

    I would suggest you drop the entire column F into an array. Then loop through that to create an output array, and drop that into column G.

    It's basically the same loop as you have but inputting and outputting array entries.

    I'm on an iPad so I can't do it just now.

    Edit: in fact, that's what bakerman2 has done for you.
    Last edited by TMS; 12-12-2024 at 07:10 PM.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,522

    Re: Make Macro Run Faster ?

    Just ahead of you Trevor.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,978

    Re: Make Macro Run Faster ?

    Quote Originally Posted by bakerman2 View Post
    Just ahead of you Trevor.
    I know. Just glad I didn't actually spend the time doing it. Though I’d probably have used a single column array for the G entries.

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,469

    Re: Make Macro Run Faster ?

    WOW !!!!

    Talk about speed ! What took 3 minutes to complete previously now only takes 0 seconds !!!!!!!

    Thank you SO MUCH.

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,978

    Re: Make Macro Run Faster ?

    You're welcome. Thanks for the rep.

  8. #8
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MSO Home and Business 2024
    Posts
    7,522

    Re: Make Macro Run Faster ?

    Glad to help. Thanks for Rep+.

+ 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. Is there a way to make this macro go faster?
    By tkbuc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-21-2020, 12:26 PM
  2. [SOLVED] Possible to make Macro run faster?
    By wonderd in forum Excel Programming / VBA / Macros
    Replies: 72
    Last Post: 10-08-2014, 04:14 AM
  3. Make Macro run faster
    By pixel34 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2014, 08:54 PM
  4. Make Macro Run Faster
    By quepes13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-06-2014, 02:23 PM
  5. [SOLVED] How to make the macro run faster?
    By ahng in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-19-2012, 11:48 AM
  6. Can I Make My Macro Faster?
    By PIPPIBOOKS in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2008, 06: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