title: VBScript Expected end of statement when declaring an integer
body: <p>I keep receiving an error on line 2 char 9 with the error </p>
  
  <blockquote>
    <p>Expected end of statement.</p>
  </blockquote>
  
  <p>I am new to working with VBScript but I have looked up several examples and I can not find where I am having an error on that line. Can you guys assist?</p>
  
  <p>Edited for more info:
  If I remove the Dim row As Integer line running the script give me a type mismatch error. 
  If I remove row = 150 and replace row further down with 150 the script updates the excel sheet as expected. </p>
  
  <pre><code>Dim args, objExcel
  Dim row As Integer 'I am having the error here. Note this comment is not normally here.
  
  row = 150
  Set objExcel = CreateObject("Excel.Application")
  
  objExcel.Workbooks.Open "C:\Users\gria\Desktop\Test\GrossRevenueCopy.xlsm"
  objExcel.Visible = False
  
  objExcel.Run "InsertRow", row
  
  objExcel.ActiveWorkbook.Save
  objExcel.ActiveWorkbook.close(0)
  objExcel.Quit
  </code></pre>