RE: Closing WORD Document Without Saving Changes

From: MDW (MDW_at_discussions.microsoft.com)
Date: 09/03/04


Date: Fri, 3 Sep 2004 04:47:02 -0700

You also should be able to trick Word into thinking the document was already
saved by setting its Saved property to True.

objYourDoc.Saved = True
objYourDoc.Close ' Should not prompt for save

"Brian McGuigan" wrote:

> I have openened a WORD Document from Access changed its
> contents, printed it and now wish to close it - without
> saving the changes. However the WORD vb constant
> wdDoNotSaveChanges is not defined in my Access routine.
> I've tried the knowledge base, but cannot find its numeric
> value. Does anyone know what it is?
>