J
JHARRIS133
I am trying to disable to Save prompt that appears when a document is closed
in Word 2003. I have found several code samples on the MSDN website, none of
which seem to work. I am writing this code in the Document_Close event. It
could be that the code is correct, but it should be placed somewhere else.
Below are the three variations I have tried to no avail, any assistance would
be greatly appreciated.
ThisDocument.Close SaveChanges :=wdDoNotSaveChanges
Documents(ThisDocument).Close SaveChanges:=wdDoNoSaveChanges
ThisDocument.Close (Word.wdSaveOptions.wdDoNotSaveChanges)
Again, this is to disable the Save prompt when closing the document.
in Word 2003. I have found several code samples on the MSDN website, none of
which seem to work. I am writing this code in the Document_Close event. It
could be that the code is correct, but it should be placed somewhere else.
Below are the three variations I have tried to no avail, any assistance would
be greatly appreciated.
ThisDocument.Close SaveChanges :=wdDoNotSaveChanges
Documents(ThisDocument).Close SaveChanges:=wdDoNoSaveChanges
ThisDocument.Close (Word.wdSaveOptions.wdDoNotSaveChanges)
Again, this is to disable the Save prompt when closing the document.