water, thanks for your help so far. I have that working. Now my script is called to run 5 times, and in each of those times it opens an excel workbook. I want the book to close after each run. It is closing, however I am seeing the Save/Don't Save/Cancel prompt pop up each time. I do not want it to save, I just want it to close. How do I get this to not show up? I have my workbooks opening as hidden, btw.
$iRow = $iRow + 1
If _ExcelReadCell($oExcel, $iRow, 4) = "" Then ; if the next cell is empty, reset the variable to 36 and end script
IniWrite($inifileloc, "Main", "Row", 36)
_ExcelBookClose($oExcel, 0, 0)
Exit
EndIf
$oExcel.Quit
IniWrite($inifileloc, "Main", "Row", $iRow)
Am I using _ExcelBookClose incorrectly? I thought the 2nd '0' parameter is to disable the message alert?
Thanks in advance.