Completely Closing Word

U

Umpty

From within MS Access, I have written a module to do task in different
documents. When the tasks are done I would like to completely close word. I
am using the following code:

oApp.ActiveDocument.Save
oApp.ActiveDocument.Close

The problem is: it closes the document, but does not completely close the
word session. I can still see that a word shell is still open in a minimized
state. How do I close all of word sessions as the document closes. Looking
for something similar to what I use in access by using the Exit command. Any
help would be greatly appreciated.
 
M

Malcolm Smith

From within MS Access, I have written a module to do task in different
documents. When the tasks are done I would like to completely close
word. I am using the following code:

oApp.ActiveDocument.Save
oApp.ActiveDocument.Close


You will need the oApp.Quit method once all the documents are closed.

- Malc
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top