closing document from within Access

  • Thread starter Thread starter Alex
  • Start date Start date
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
 
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
 
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.
 
Back
Top