With these lines of code i can open a new Excel instance and control it via the COM.
Code: Select all
oExcel := ComObjCreate("Excel.Application") oExcel.Workbooks.Add oExcel.Visible := 1
if an excel application is ALREADY open (with an active sheet), how could assign that istance to a COM object in order to control it via AHK?
Thank you for the replies