Opened 8 years ago

Closed 8 years ago

#3145 closed Bug (No Bug)

ObjGet dont work

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


Script example:

#include <MsgBoxConstants.au3>

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


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

    $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 Changed 8 years ago by anonymous

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

comment:2 Changed 8 years ago by BrewManNH

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.