Мне функция из библиотеки _ExcelCOM_UDF.AU3 выдает ошибку: объекта не существует.
Код:
Local $addsheet = _ExcelSheetAddNew($oExcel, "New Sheet Example")
Local $pict_insert = _ExcelPictureInsert($addsheet, @DesktopDir&"\QA3.jpg", 10, 10, 18, 18, True, True)
If $pict_insert <> @error Then
_FileWriteLog($Excellog,"INFO"&""&">>"&"Excel Add Image Function>>"&"Image has been added to the Sheet successfully")
Else
_FileWriteLog($Excellog,"ERROR"&""&">>"&"Excel Add Image Function>>"&"Function unable to add a Image to the workbook and the occured error is "& @error)
EndIf
;End of add sheet Function
Sleep(5000)
_ExcelBookClose($oExcel)
Sleep(2000)