Modify

Opened 9 years ago

Closed 9 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 Changed 9 years ago by anonymous

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

comment:2 Changed 9 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

Action
as closed The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.