+ Reply to Thread
Results 1 to 4 of 4

Code running extremely slow (20-30 minutes)

  1. #1
    Registered User
    Join Date
    06-22-2017
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Code running extremely slow (20-30 minutes)

    Hey guys,
    I have written a few Macros since my first post on here, and they're working out pretty well. One of these Macros I am trying to run on multiple files. I have a working code but for some reason it takes a massive amount of time to run. Any suggestions or ideas on why it's so slow.
    Here it is:
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Code running extremely slow (20-30 minutes)

    Hi Biker_Seth

    I am very certain that we can assist, however, be so kind and upload a sample file and explain to us what you are trying to achieve.
    Good Luck...
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the [★ Add Reputation] to left of post window...
    Also....Add a comment if you like!!!!
    And remember...Mark Thread as Solved...
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    06-22-2017
    Location
    San Jose, CA
    MS-Off Ver
    Excel 2016
    Posts
    9

    Re: Code running extremely slow (20-30 minutes)

    Quote Originally Posted by sintek View Post
    Hi Biker_Seth

    I am very certain that we can assist, however, be so kind and upload a sample file and explain to us what you are trying to achieve.
    Thank you, I am trying to loop through a folder full of files like this one, do some processing, and extract the results. Here is an example file.
    Attached Files Attached Files

  4. #4
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    14,958

    Re: Code running extremely slow (20-30 minutes)

    I'm curious....How are you performing this code if you have already closed the file...Workbooks(FileItem.Name)
    Please Login or Register  to view this content.
    What is the reason for this...
    Please Login or Register  to view this content.
    Have a look at amended code...Might just be a shot in the dark...
    Please Login or Register  to view this content.
    So difficult not actually knowing what you are trying to achieve...it will be alot easier if we knew exactly step by step what you wanted to do...Also with such a huge amount of data..perhaps autofilter would be a better option.
    Perhaps someone else can assist further...
    Last edited by Sintek; 07-25-2017 at 04:06 AM.

+ 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. Alternative for my extremely slow code?
    By Warmerfare in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2017, 11:16 AM
  2. [SOLVED] Macron running extremely slow after update to Excel 2016
    By masben in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-08-2016, 11:26 AM
  3. Replies: 1
    Last Post: 09-09-2013, 03:41 AM
  4. [SOLVED] Calculations running extremely slow, any suggestions
    By Dena in forum Excel General
    Replies: 1
    Last Post: 08-09-2013, 02:01 PM
  5. [SOLVED] Copy/Drag Down for Data range's running extremely slow.
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-23-2011, 01:35 AM
  6. Extremely Slow code. Please Help
    By flyersguy4 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2011, 09:26 PM
  7. program running extremely slow
    By Toidz77 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2009, 01:03 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