Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel macro slows down on second run

Hi. I am facing a problem with the performance of a macro that my
colleague has written. In a nutshell, the macro vlookups for values
from various excel workbooks/wooksheets, and put them all into one
worksheet (wsSample). The first time it runs, the speed of the macro
is "acceptable". After the existing the macro (VBA....passes END),
while Excel is still running and the wsSample is still active, if I try
to rerun the macro, the speed of the macro drops drastically. However,
this problem will not occur if I shut down Excel, restart Excel and
rerun the macro. Does anybody know anything about this?


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel macro slows down on second run

Try saving the active workbook.

HTH,

"lee777 " wrote:

Hi. I am facing a problem with the performance of a macro that my
colleague has written. In a nutshell, the macro vlookups for values
from various excel workbooks/wooksheets, and put them all into one
worksheet (wsSample). The first time it runs, the speed of the macro
is "acceptable". After the existing the macro (VBA....passes END),
while Excel is still running and the wsSample is still active, if I try
to rerun the macro, the speed of the macro drops drastically. However,
this problem will not occur if I shut down Excel, restart Excel and
rerun the macro. Does anybody know anything about this?


---
Message posted from http://www.ExcelForum.com/


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel macro slows down on second run

Does the sheet display pagebreaks after running the macro - if so, this may
be the source of the problem.

At the top of the macro put

ActiveSheet.DisplayPageBreaks = False


--
Regards,
Tom Ogilvy


"lee777 " wrote in message
...
Hi. I am facing a problem with the performance of a macro that my
colleague has written. In a nutshell, the macro vlookups for values
from various excel workbooks/wooksheets, and put them all into one
worksheet (wsSample). The first time it runs, the speed of the macro
is "acceptable". After the existing the macro (VBA....passes END),
while Excel is still running and the wsSample is still active, if I try
to rerun the macro, the speed of the macro drops drastically. However,
this problem will not occur if I shut down Excel, restart Excel and
rerun the macro. Does anybody know anything about this?


---
Message posted from http://www.ExcelForum.com/



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
Excel 2007: Selection windows slows down when highlighting cells Scott Excel Discussion (Misc queries) 2 February 12th 10 07:54 PM
Filtering slows down a macro Curt D. Excel Worksheet Functions 1 October 13th 06 04:08 AM
Excel worksheet slows computer stevieray Excel Worksheet Functions 1 June 3rd 06 02:05 AM
Excel 2000 with macros slows to write to W2k3/XP disk or shares Chris V. Excel Discussion (Misc queries) 0 May 3rd 06 07:37 AM
Excel slows down for no(?) reason... thekovinc Excel Discussion (Misc queries) 0 December 6th 05 06:01 PM


All times are GMT +1. The time now is 11:41 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"