title: How to work around hibernation when automating the running of a macro?
body: <p>I am using the code below to run a macro at specific time each day which works fine while I am at work but over weekends my computer goes into sleep mode and the code does not run. How do I work around this?</p>
  
  <pre><code>Sub Scheduler()
      Application.OnTime TimeValue("12:00:00"), "TheScheduledSub"
  End Sub
  
  Sub TheScheduledSub()
      MsgBox "TheScheduledSub() has run at " &amp; Time
  End Sub
  </code></pre>