Friday, December 17, 2004
Speeding up an Excel VBA macro
The quickest easiest way to speed up the execution of a macro is to turn off the screen updating. What this does is stop the computer having to refresh every execution of the macro on the screen thus enabling it to operate faster as it doesn't have to wait for each screen refresh to complete.
This is done by putting these two lines at the beginning and end of the macro respectively.
Application.ScreenUpdating = False
Application.ScreenUpdating = True