sub main()
msgBox "I am going to sleep for three soconds"
'
' The Sleep call expects the duration in milliseconds.
' 3000 milliseconds is 3 seconds
'
Sleep 3000
msgBox "Woken up"
end sub
application.wait allows to schedule the execution of a VBA procedure.