1: 2: 3: 4: 5: 6: 7: 8: 9: 10:
Function Wait(intSeconds As Integer) As Integer Dim datCurDateTime As Date datCurDateTime = Now Do Until DateDiff("s", datCurDateTime, Now) > intSeconds DoEvents Loop End Function