testing efficieny/speed of a macro

M

MJKelly

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
 
B

Bob Phillips

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top