[Moderator's note: Moved topic from Bug Reports to Ask for Help.]
ComObjActive() stability
If it is XLS file to open by clicking on the excel: no problem
but If it's open excel.exe to be wrong
Be ComObjActive bugs! I am win7 excel 2010
[AHK_L]ComObjActive() HELP
Started by
bolang
, Mar 02 2011 04:02 PM
4 replies to this topic
Please state your problem more clearly.
#2
-
Posted 02 March 2011 - 04:42 PM
I want to use
objExcel := ComObjActive("Excel.Application")
Connection already open the excel
Sometimes success, sometimes fail
Hence, I through test to find out
If XLS files and open by double-clicking excel, connection succeeds
But, if by double-clicking excel.exe open excel 2010, then connection failure
Error: 0x800401E3 - Operation cannot use
objExcel := ComObjActive("Excel.Application")
Connection already open the excel
Sometimes success, sometimes fail
Hence, I through test to find out
If XLS files and open by double-clicking excel, connection succeeds
But, if by double-clicking excel.exe open excel 2010, then connection failure
Error: 0x800401E3 - Operation cannot use
#3
-
Posted 02 March 2011 - 04:56 PM
bolang
This is not an AHK problem, it is related to the problem described by Microsoft here.
Somebody asked about this exact problem a day or two ago and the problem was that when their script was run it attempted to get an Excel instance right away, but they didn't always have a running instance of Excel when they started their script. You may want to post your script so we can see what may be causing it, but it is not an error on the part of AHK.
Somebody asked about this exact problem a day or two ago and the problem was that when their script was run it attempted to get an Excel instance right away, but they didn't always have a running instance of Excel when they started their script. You may want to post your script so we can see what may be causing it, but it is not an error on the part of AHK.
#4
-
Posted 02 March 2011 - 05:16 PM