I'm not a whiz-kid (I'm in my 60s) but here's a simple way I find
useful...
Sub TimeEvents()
' use to time procedures or functions
Dim Starttime As Date, EndTime As Date
Starttime = Timer
'Run procedure
EndTime = Timer
MsgBox Format(EndTime - Starttime, "0.0000")
End Sub
Note that you can set whatever result format you want. (The format
above displays seconds to 4 decimal places.)
--
Garry
Free usenet access at
http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc