View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bill Martin[_3_] Bill Martin[_3_] is offline
external usenet poster
 
Posts: 54
Default Keep Awake Nudge

I'm running Excel 2003 under XP. Sometimes if I run an optimization
routine for an extended period VBA occasionally seems to get confused
and produce an error if the computer enters "sleep" mode. Not always,
but unpredictably. Then the computer hangs up waiting for me and I'm
not there to help it.

is there something I can do with VBA every ten minutes or so to give
XP a small keep awake nudge? When I think to do it, I manually turn
off the sleep mode before running a long optimization, but
unfortunately the human element (me) is not reliable enough.

Thanks.

Bill