|
-
July 22nd, 1999, 02:34 PM
#1
VB OLE Automation
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.
-
July 22nd, 1999, 03:12 PM
#2
Re: VB OLE Automation
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
-
July 22nd, 1999, 03:45 PM
#3
Re: VB OLE Automation
Just found Quit method on my own, but thanks for the reply !!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|