title: VBS error: "Expected end of statement"
body: <p>I must be overlooking something painfully obvious. The following code fails on the Next line with the error message "Expected end of statement":</p>
  
  <pre><code>Option Explicit
  
      GetB
  
  Sub GetB()
      Dim i
  
      For i = 1 to 2
          Msgbox i
      Next i
  
  End Sub
  </code></pre>