Jump to content
Sign in to follow this  


Recommended Posts


In my the GUI there is an option to onlt read the first column of the excel file or the intire sheet.

if $EenOfTwee = 0 then
    $aWO_Nr = _ExcelReadArray($oExcel, $iStartRow, $iStartColumn,$iRows,1,0)
elseif $EenOfTwee=1 Then
    $aWO_Nr = _ExcelReadSheetToArray($oExcel)


the first option works, but _ExcelReadSheetToArray gives my errors.

C:\Program Files\AutoIt3\Include\Excel.au3 (787) : ==> Variable must be of type "Object".:

Local $sLastCell = $oExcel.Application.Selection.SpecialCells($xlCellTypeLastCell).Address(True, True, $xlR1C1)

Local $sLastCell = $oExcel.Application.Selection^ ERROR

i open the excel with

$FilePath = FileOpenDialog("Go - Choose your excel file as inbuilt one not exists", $FilePath, "Worksheet" & " (" & "*.xls" & ")", 1);+ $Recurse+ $Recurse

local $oExcel = ObjGet($FilePath); Create an Excel Object

see attachments for the excel


Share this post

Link to post
Share on other sites

$oExcel.Windows (1).Visible = 1; Set the first worksheet in the workbook visible
    $oExcel.Worksheets (1).Activate
    $oExcel.ActiveSheet.Visible = 1
    $oExcel.Application.Visible = 1

and it works fine :-)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.