none of the com object functions are working for me

Get help with using AutoHotkey and its commands and hotkeys
drizzt
Posts: 31
Joined: 20 Apr 2018, 20:44

none of the com object functions are working for me

28 Jun 2018, 19:12

I am trying to grab info from excel spreadsheet but it would seem even basic com ojb functions arent working. Is there some sort of library i need to load first.
for example I tried this code expecting excel to load but nothing happens

Code: Select all

oExcel := ComObjCreate("Excel.Application") ; create Excel Application object
oExcel.Workbooks.Add ; create a new workbook (oWorkbook := oExcel.Workbooks.Add)
I am using AHK version 1.1.28.02
imustbeamoron
Posts: 43
Joined: 18 Aug 2016, 22:56

Re: none of the com object functions are working for me

28 Jun 2018, 19:38

no libraries needed. try adding this line to the end of your script. i am far from an expert in COM though, so maybe its not the issue.

Code: Select all

oExcel.Visible  := True

Return to “Ask For Help”

Who is online

Users browsing this forum: blenderfish, boiler, DaveT1, hackkk745, SmallGamer, sofista, Zamfir and 41 guests