Modify

Opened 10 years ago

Closed 10 years ago

#3145 closed Bug (No Bug)

ObjGet 3.3.14.2 dont work

Reported by: Zaibai Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.2 Severity: None
Keywords: objget Cc:

Description

Script example:

#include <MsgBoxConstants.au3>

; Example getting an Object using it's class name
; ; Excel must be activated for this example to be successful

Example()

Func Example()
    Local $oExcel = ObjGet("", "Excel.Application") ; Get an existing Excel Object

    If @error Then
        MsgBox($MB_SYSTEMMODAL, "", "Excel File Test" & @CRLF & "Error Getting an active Excel Object. Error code: " & Hex(@error, 8))
        Return False
    EndIf

    $oExcel.Visible = 1 ; Let the guy show himself
    $oExcel.workbooks.add ; Add a new workbook
EndFunc   ;==>Example

If Excel is open or not open => Error: Error Getting an active Excel Object. Error code: 80020006

Can you help me ? :)

Attachments (0)

Change History (2)

comment:1 by anonymous, 10 years ago

After reboot my computer its work...
OS: Windows 10
MS: Microsoft Office 2010

comment:2 by BrewManNH, 10 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.