title: For loop not iterating through the whole loop
body: <p>In Excel VBA I have 2 loops - the i loop and the j loop. When the program runs into the j loop, the loop is supposed to run 9 times since i=9. But the j loop runs only once.</p>
  
  <pre><code>Public Sub ArrayReader(ByRef internalArray() As String, ByRef s As String)
  
  Dim j As Integer
  Dim str1 As String
  
  For i = LBound(internalArray) To UBound(internalArray)
    If internalArray(i) = "(" Then
     MsgBox "check" &amp; i
      For j = 0 To j = i
       str1 = str1 &amp; internalArray(j)
       MsgBox "j loop is running. Iteration#:" &amp; j
      Next j
     MsgBox str1 &amp; "J value is:" &amp; j
     MsgBox "I value is:" &amp; i
    End If
  Next i
  
  End Sub
  </code></pre>