Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
RWN RWN is offline
external usenet poster
 
Posts: 104
Default Macro slows down on subsequent runs

XL'03 on XP.
I have a macro (template) that opens three workbooks and compares one to the other two and
puts out a list of inconsistencies on a separate sheet.
The macro runs great (fast) on the first call but slows down (an incredible amount) when
called again.
Having been hit by memory leaks in prior versions of XL I ensured that I set all my
objects to nothing, closed the open workbooks, suspended the screen updating etc.. All of
which to no avail.
The only difference is that on subsequent calls I delete the output sheet & create a new
one prior to processing the workbooks.

I have to not only close the workbook but *close Excel* in order for the macro to work
properly.

There are no graphics (save for a form button that calls the macro) and it is run on a
local machine (no network drives).

Any hints?

--
Regards;
Rob
------------------------------------------------------------------------


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA macro runs fine, but freezes if I try to do ANYTHING else whileit runs Rruffpaw Setting up and Configuration of Excel 1 September 17th 11 01:25 PM
One macro runs then it auto runs another macro PG Excel Discussion (Misc queries) 2 September 1st 06 09:30 PM
Code slows down after a few runs Diverse Computing[_2_] Excel Programming 2 July 21st 05 04:08 AM
Excel macro slows down on second run lee777 Excel Programming 2 June 17th 04 02:28 PM
Code slows on subsequent run Paul Mac. Excel Programming 3 November 4th 03 02:30 AM


All times are GMT +1. The time now is 03:11 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"