title: Create Millisecond Loops in Excel VBA
body: <p>Since I just found out about Excel Macros, I want to try to simulate moving objects. I would like to run some looped code every 'frame' of my project. I can make an infinite loop in Excel VBA with this code:</p>
  
  <pre><code>Do While True:
      'code
  Loop
  </code></pre>
  
  <p>However, this crashes Excel. Is there a way to make an infinite loop that runs every ten milliseconds or so, something like this:</p>
  
  <pre><code>Dim timer as Timer
  If timer = 10 Then
      'code
      timer = 0
  End If
  </code></pre>
  
  <p><b>EDIT:</b> Your answers are very good, but not exactly what I'm looking for. I want to be able to run other code at the same time; a bit like Javascript's</p>
  
  <pre><code>setInterval(function(){}, 200);
  </code></pre>
  
  <p>which can run multiple functions simultaneously.</p>