В справке есть множество функции на тему Excel'я.
Для ObjGet нужно либо имя файла xls (без указания имени объекта), либо только имя объекта.
Но лучше использовать встроенные функции:
Код:
#include <Excel.au3>
#include <File.au3>
;
$sFilePath = @DesktopDir & "\AutoIT.xls"
_FileCreate($sFilePath)
$oExcel = _ExcelBookOpen($sFilePath, 1)
MsgBox(64, "", $oExcel.WorkBooks.Count)
_ExcelBookClose($oExcel, 1, 0) ;This method will save then Close the file, without any of the normal prompts, regardless of changes