It's there any way to know if any document was already open and then close
only new created documents ? as now if a document was opened and my programs
starts, then the opened document is closed with Word, without asking if it
may be saved.
Please help.
BOB
Documents.count
Before you create any new documents, you could itereate through the
documents collection for a list of all already open documents.
To get a list of all documents you have created, you could store a
variable of type IDocument or OleVariant for each one your create, or
keep a list of the document names.
Toby Allen.