Anyone know how to close an instance of Word from within VB? I am already setting my object variable to nothing but with no success.
Printable View
Anyone know how to close an instance of Word from within VB? I am already setting my object variable to nothing but with no success.
I have used the following code to Close the Document and Quit Word.
fobj_Word is my Word Application. fobj_Doc is my Document
set fobj_Word = CreateObject("Word.Application")
set fobj_Doc = .Documents.Open(<filename>)
'Update fobj_Doc
fobj_Doc.Close wdDoNotSaveChanges 'you can use other constants
fobj_Word.Quit wdDoNotSaveChanges
Just found Quit method on my own, but thanks for the reply !!!