![]() |
testing efficieny/speed of a macro
Hi,
I have a few macros which perform the same tasks. How can I measure their speed of execution (start to finish), so I can only use the fastest and delete the others. Also, would this be a good method of identifying how efficient a macro is i.e using different looping methods or the difference of copying data using filters or the offset command? I was thinking of some sort of timer to log the time taken for the macro to run and complete? any idea's? Matt |
testing efficieny/speed of a macro
One simple way
Dim nTime As Double nTime = Timer 'your code Msgbox Timer - nTime 'time i secs -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "MJKelly" wrote in message oups.com... Hi, I have a few macros which perform the same tasks. How can I measure their speed of execution (start to finish), so I can only use the fastest and delete the others. Also, would this be a good method of identifying how efficient a macro is i.e using different looping methods or the difference of copying data using filters or the offset command? I was thinking of some sort of timer to log the time taken for the macro to run and complete? any idea's? Matt |
All times are GMT +1. The time now is 03:38 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com