Computing.Net > Forums > Office Software > Excel increasing slowdown, in multi

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excel increasing slowdown, in multi

Reply to Message Icon

Name: rappleman
Date: December 21, 2003 at 15:25:40 Pacific
OS: XP Home
CPU/Ram: P4 2.5ghz 512mb
Comment:

I've Excel VBA macros which repetitively open 100+ data files (no more than 4 open at once), do heavy number-crunching, save results, then do it all over again a few hundred times with slight variations in parameters. It takes a week to run one of these, and using the Timer function I discovered that the time taken to do one iteration slowly increases from 10 minutes to over an hour (even though the data and calculations are the same) and despite all effort to close files as soon as finished, etc. I use Excel 2000 (9.0) and read in the Microsoft knowledge base that there are memory leak/slowdown bugs supposedly fixed by Service Release 1/1a, which I applied, to no effect. Then I tried installing Excel XP and found that the increasing slowdown still was there (and Excel XP in total runs noticeably slower than Excel 2000, so I’m back with Excel 2000). No error messages generated and it eventually successfully finishes, but it just slowly slows to a crawl as it runs. The OS is XP Home. Restarting Excel (without rebooting) gets it going fast again. Any suggestions as to where to look for this problem, how to narrow down or diagnose it, fix it, etc.? Thanks!



Sponsored Link
Ads by Google

Response Number 1
Name: Report_2
Date: December 22, 2003 at 03:26:35 Pacific
Reply:

Having CPU/Ram: P4 2.5ghz 512mb I don't know why it slows down but is there room for improvement in the programming of your macro.

I once had a macro that performed 27 different functions for me. As a single macro it took about a minute to run.

I rewrote it as 27 separate macros and then created a 28th to run the other 27 and it completed it's task in 8 seconds which is a massive improvement.

Also, macros that include loops tend to go slow and they can often be replaced with a faster method.

I realize you are talking about a single macro that slows over time and use but if that macro is overworking to start with versus running efficiently then the problem would increase. Perhaps a better macro will not slow down over your project span.

Otherwise I do not know why Excel calculations slow over time and use.

Bryan


0

Response Number 2
Name: safeTsurfa
Date: December 22, 2003 at 17:18:25 Pacific
Reply:

Can anyone say "Repetitious demand on resources"? It isn't just Excel, this will happen with any program where it is repeating the same limited sequence of tasks over and over. Not sure about the technicals of why it happens, but it is as if the system chokes. I look upon it as the system getting "tired", just as we would.


0

Response Number 3
Name: dericksalls
Date: December 31, 2003 at 07:41:05 Pacific
Reply:

I have a similar problem with excel 2000. My machine dual boots in either w2k or w98se and I discovered that what takes 20 to 30 minutes under w2k takes less than 3 minutes under w98se. So I use w98se when I want to use excel 2000. I would love to find out how to correct in problem using w2k but will use w98se until then.


0

Response Number 4
Name: elduke
Date: January 27, 2004 at 07:02:10 Pacific
Reply:

I just upgraded a windows 98se machine to windows 2000 and my excel macros have also slowed down to a crawl. The macros ran fine on the previouse operating system. I'm using office 2000. If anyone can help, I'd be much thankful.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excel increasing slowdown, in multi

Excel Opening hyperlink in Tab (I/E 8) www.computing.net/answers/office/excel-opening-hyperlink-in-tab-ie-8/9628.html

excel: comparing cells in rows of d www.computing.net/answers/office/excel-comparing-cells-in-rows-of-d/6222.html

large datasets in excel www.computing.net/answers/office/large-datasets-in-excel/2359.html