Word document and its Open/Closed status controlled via VB6
Posted on 2011-03-17
This is the code lines that work to open the word document.
Set objWordApp = CreateObject("Word.Application")
Set objWordDoc = CreateObject("Word.Document")
Set objWordDoc = objWordApp.Documents.Open(strMailMergeFilePath)
objWordApp.Visible = True
After this lines I have the document opened and user can view it. I would like to application to do some other stuff when user clicked the word document "closed' - that x - button in the right upper corner.
Is this possible to do? Can the application see the status of the objWordDoc?