Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Connect to Excel Failure
#6
Here is a bare bones test that demonstrates the problem I'm experiencing:

Created the following macro:

act child("[\0-9a-z]*" "" win("Microsoft Excel [\0-9a-z]*" "XLMAIN" "" 0x200) 0x200)
ExcelSheet ExcelTest.Init
ExcelTest.SetCell("Testing" 1 1)

If the first line is commented out, I get the "Failed to connect to Excel" error message, and nothing happens to the Excel window.

If the first line is not commented out, I get the "Failed to connect to Excel" error message, but the Excel window and the currently selected cell both flash quickly a couple of times first.

If I make exe, and run the exe by double-clicking it, cell A1 is loaded with "Testing", as expected.



Is this a bug, or is something mis-configured on my PC?


Messages In This Thread

Forum Jump:


Users browsing this thread: 12 Guest(s)