title: VBA returning error when calling a Sub with multiple parameters
body: <p>I'm trying to figure out why <code>VBA</code> is returning an error <code>(Compile error: Expected: =)</code>when I call a <code>Sub</code> and supply it with multiple parameters.</p>
  
  <pre><code>Sub customerController(cleanStructure As Boolean, firstCol As Integer, latCol As Integer, _
                      lngCol As Integer, Optional startRow As Long, Optional endRow As Long)
  
  Dim i As Long, j As Long, n As Long
  
  If (cleanStructure = False) Then
      'customer data type
      If (startRow = "") Then i = 1
      If (endRow = "") Then j = countRows
      For n = i To j - i + 1
          generateURL(n, firstCol)
          newReadXMLData (url)
          ActiveSheet.Cells(i, latCol).Value = lat
          ActiveSheet.Cells(i, lngCol).Value = lng
      Next
  End If
  
  End Sub
  </code></pre>
  
  <p>The <code>Sub</code> that I'm calling requires two parameters:</p>
  
  <pre><code>Sub generateURL(row As Long, column As Long)
  </code></pre>