title: Excel loop that loops through a fixed number of times
body: <p>I am working on some formulas in excel VBA and I am trying to make it loop through a certain number of times. Is it possible to do so in VBA and if so how do I do it? </p>
  
  <p>My code is as follows:</p>
  
  <pre><code>Sub move()
      If ActiveCell.Offset(0, -1) = ActiveCell.Offset(1, -1) Then
          ActiveCell.Formula = "1"
          ActiveCell.Offset(1, 0).Select
      Else
          ActiveCell.Offset(1, 0).Select
      End If
  End Sub
  </code></pre>