Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

2003 Excel Macros Run Slowly

89 views
Skip to first unread message

Ed H

unread,
Feb 5, 2004, 1:50:35 PM2/5/04
to
I upgraded to Office 2003 and have a macro in one of my
spreadsheets. When I execute this macro it runs very,
very slowly i.e. mulitple minutes vs 2 sec on Office
2000. Is there anything I should be doing to improve the
speed?

Regards,
Ed

Dave Peterson

unread,
Feb 5, 2004, 9:31:30 PM2/5/04
to
Close excel, clean up your windows temp folder.

set calculation to manual, run your code, reset it to what it was.
Turn screenupdating off when you start and on when you finish.
turn the display of pagebreaks off when you start.


Lots of my macros have this at the top:

Dim CalcMode As Long
CalcMode = Application.Calculation
Application.Calculation = xlCalculationManual
ActiveSheet.DisplayPageBreaks = False

and near the bottom:

Application.Calculation = CalcMode
Application.ScreenUpdating = True

--

Dave Peterson
ec3...@msn.com

0 new messages