G
Guest
I want to close a Word document and tried this code:
Set wordApp = GetObject(, "Word.Application")
Set WordDoc = wordApp.Documents.Open(file_name)
With wordApp
.Documents.Close
End With
How can I check wether the document is open? And how can I close only
the document, not all open word documents?
Set wordApp = GetObject(, "Word.Application")
Set WordDoc = wordApp.Documents.Open(file_name)
With wordApp
.Documents.Close
End With
How can I check wether the document is open? And how can I close only
the document, not all open word documents?