RosettaCodeData/Task/Sleep/VBA/sleep.vba

6 lines
196 B
Text
Raw Permalink Normal View History

2014-01-17 05:32:22 +00:00
Function Sleep(iSecsWait As Integer)
Debug.Print Now(), "Sleeping..."
Application.Wait Now + iSecsWait / 86400 'Time is stored as fractions of 24 hour day
Debug.Print Now(), "Awake!"
End Function