Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 117
Default waittime versus Sleep

What exactly is the difference between using the VBA
Application.Wait command and using Sleep() from the Windows API?

Thanks, Alan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default waittime versus Sleep

The Wait method suspends all Microsoft Excel activity and may prevent you
from performing other operations on your computer while Wait is in effect.
However, background processes such as printing and recalculation continue
where as Windows Sleep API puts your macro gently to sleep and wakes it up
after a specified time. Your macro eats no processor cycles while it's
snoozing..

If this post helps click Yes
---------------
Jacob Skaria


"Alan" wrote:

What exactly is the difference between using the VBA
Application.Wait command and using Sleep() from the Windows API?

Thanks, Alan



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Earn when you sleep john smith New Users to Excel 0 October 11th 09 08:05 AM
Sleep Mode Daviv Excel Programming 0 June 19th 07 05:49 PM
Calculating Sleep CarlM New Users to Excel 5 August 3rd 06 01:40 PM
Baby Sleep log Baby's Sleep Log Charts and Charting in Excel 1 February 2nd 06 07:19 PM
Web Query Sleep for until results come Sunil_Modi Excel Worksheet Functions 0 November 19th 04 04:29 PM


All times are GMT +1. The time now is 10:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"