Code: Select all
oWord := ComObjectCreate("Word.Application")
However, recently I was trying to tackle an issue with grabbing data from an already open and running Word document and so I looked up examples which pointed me
Code: Select all
oWord := ComObjActive("Word.Application")
Further reading led me to other threads discussing this very issue in which it was pointed out that the syntax was wrong, however he still had trouble to get it work properly.
- Yes the document is open
- Yes I tried Minimizing and Maximizing.
I've tried this both Office 2010 and 2013.
Error Message:
Further googling error message led me to something called Com Interop Assemblies and formatting Com commands likeError: 0x800401E3 - Operation unavailable
Code: Select all
oWord := ComObjActive("Microsoft.Office.Application.Word.Application")
What's happening here?
How can this be fixed?
Is it something to do with the state of Ahk's COM implementation?