Code to close documents and not save changes

J

Jeff Byrd

We have a Word2003 merge document that merges with an Access2003 Query.
When we close the document it propmts us to save changes. What code can I
use to close the documents (the merged document and the original) and not
save any changes?
 
J

Jezebel

Either:

Doc.Saved = TRUE Word will not save a document if it thinks the doc
is saved already or unchanged since opened.

or, more simply

Doc.Close SaveChanges:=FALSE
 

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