TIMING EXECUTION DURATION!

J

jay dean

This macro when added to my code should write the time duration it takes
for my code to execute (from start to finish) in minutes or seconds in
Range("A1") as a string like "Total Execution Time: X seconds".

Any help would appreciated!

Thanks
Jay



*** Sent via Developersdex http://www.developersdex.com ***
 
B

Bob Phillips

Dim nTime As Double

nTime = Timer
... your code
Next

Range("a1")Value ="Total execution time: " & Timer - nTime & " seconds"


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 

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