closing document from within Access

A

Alex

Hi,

If within Access I use : Set WordDoc = WordApp.Documents.Close(StrDocName)
to open a Word document, what is the syntax to close the document

Thanks

Alex
 
A

Alex

Oops

Might help if I got my synatx right

If within Access I use : Set WordDoc = WordApp.Documents.Open(StrDocName)
to open a Word document, what is the syntax to close the document
 
D

Dirk Goldgar

Alex said:
Oops

Might help if I got my synatx right

If within Access I use : Set WordDoc =
WordApp.Documents.Open(StrDocName) to open a Word document, what is
the syntax to close the document

Have you tried

WordApp.Documents(strDocName).Close

? I believe there are also optional arguments for the Close method.

Note that this won't close the Word application itself; just that
document.
 

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