Time consumption in macros
Jon,
Here's a quick one.
Sub YourSubName()
Dim starttime As Double
starttime = Now
....your code....
MsgBox (Format(Now - starttime, "h:mm:ss"))
End Sub
Mike
"Jon" wrote:
Hi eveybody, here I am with one question:
How can I know the time which takes to Excel to execute a macro. Because I
have got some loops and I want to know how long does it take in order to view
if I can improve the loops or not.
Probably it is a simple question which I don't know and I think it is very
useful.
Thanks for your time!!!
|