I have been using AHK for a little while now, and I have been running macros housed in my PERSONAL.XLSB workbook just fine. For some reason, this is no longer working.
The code as per below:
Code: Select all
ExcelActions_MergeAndWrap:
If WinActive("ahk_class XLMAIN") {
Macro:= "PERSONAL.XLSB!MergeAndWrap"
try xlApp := ComObjActive("Excel.Application")
xlApp.Run(Macro) ;fails here, doesn't like Run anymore?
}
Return
The error:
Error 0x80010001 - Call was rejected by callee.
Specifically: Run
xlApp.Run(Macro)
Some info:
• I did receive a new PC box recently and had to copy my xlsb in from a back up location
• It has worked in the past
Any ideas as to what is stopping this now?