Thread: pause in script
View Single Post
  #2  
Old February 24th 06, 03:46 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default pause in script

Although if this is truly script code (VBScript) none of the Win32 API calls
can be used.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Michael Bednarek" wrote in message
...
On Thu, 23 Feb 2006 07:38:11 -0800, Joel Allen wrote in
microsoft.public.outlook.program_vba:

I just want to add a 5 second pause in my script. Can someone point me to
some sample code - I couldn't find the command?


This is what I use:
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
and then
Sleep 5000 ' Sleep 5 seconds

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"


Ads