title: How do I prevent my background macros from stopping when I use Sleep?
body: <p>Whenever I run Sleep, all my background macros stop working. i want to be able to do OnKey events while having the sleep constantly running. </p>
  
  <p>Here's the part with sleep API</p>
  
  <pre><code>Sub Bombs()
   Do While bomb.Offset(, 1).Value &lt;&gt; "*"
      bomb.clear
      Set bomb = bomb.Offset(, 1)
      bomb.Interior.Color = vbRed
      Sleep (200)
  Loop
  End Sub
  </code></pre>
  
  <p>it basically causes a red cell to move accross the screen. </p>