+ Reply to Thread
Results 1 to 4 of 4

Can someone please help me speed up my macro?

  1. #1
    Registered User
    Join Date
    03-29-2023
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft Office 2010
    Posts
    5

    Question Can someone please help me speed up my macro?

    Hi,

    I was hoping someone could help with any obvious ways to speed up the below macro?

    Essentially, it is an overarching For-Next loop with multiple arrays, looping through arrays and a couple of dictionaries.

    I often need to run it for over 100 cycles with 3,000 - 4,000 rows of data. Unfortunately this can take hours, even days to complete.

    Any help would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,687

    Re: Can someone please help me speed up my macro?

    Please attach a sample file: instructions in yellow banner at top of the page.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  3. #3
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,521

    Re: Can someone please help me speed up my macro?

    I advise you to check often what is more profitable. Whether using a spreadsheet function or a typical VBA solution. Although it is generally said that spreadsheet functions are fast, this is not always the case. Proof below.
    There are still a few things to optimize in the code, but I think MOD is your main problem.
    Please Login or Register  to view this content.
    Artik

  4. #4
    Valued Forum Contributor
    Join Date
    11-27-2011
    Location
    usa
    MS-Off Ver
    Excel 2007, Excel 365
    Posts
    495

    Re: Can someone please help me speed up my macro?

    There are a few things that can be done to speed up the code, but as @JohnTopley suggested, a sample workbook would be recommended for testing on.

+ 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] Speed controls, how to calculate average speed.
    By Hejhallo in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 04-07-2022, 06:33 AM
  2. How to avoid cell SELECTION but still format cells to speed up the macro running speed
    By BeefyBerts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2018, 08:18 AM
  3. Everage Speed km/time (european speed)
    By GerryZucca in forum Excel General
    Replies: 3
    Last Post: 02-23-2015, 03:02 PM
  4. Speed-up Macro
    By yunesm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-22-2011, 04:04 PM
  5. Speed up a macro
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-13-2010, 07:42 PM
  6. Help, need to speed up this macro
    By retseort in forum Excel General
    Replies: 3
    Last Post: 01-12-2006, 08:35 AM
  7. Speed-up a macro!
    By maca in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2005, 02:05 PM

Tags for this Thread

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