Hier mal ein Beispiel mit einer Excel Datei, die du Öffnen musst.
Könntest deine ja auch
AutoIt
$path = @ScriptDir & "\test.xlsx"
Local $oExcelapp = _Excel_Open(0,0,1,1,1)
Local $oExcel = _Excel_BookOpen($oExcelapp, $path)
If @error = 1 Then
MsgBox(0, "Error!", "Unable to Create the Excel Object")
Exit
ElseIf @error = 2 Then
MsgBox(0, "Error!", "File does not exist - Shame on you!")
Exit
EndIf
$aArray = _Excel_RangeRead($oExcel,Default,Default)
_Excel_BookClose($oExcel, True)
_Excel_Close($oExcelapp, Default, True)
_ArrayDisplay($aArray, "Array using Default Parameters")
$activeSheet = $oWorkbook.ActiveSheet.Name ; prüfe welches Sheet aktiv
If $activeSheet <> $id Then $oWorkbook.Sheets($id).Activate ; aktiviere sheet mit accountname, wenn nicht schon aktiv ($id = Sheetname)
Alles anzeigen
gruß gmmg