RE: Closing WORD Document Without Saving Changes
From: MDW (MDW_at_discussions.microsoft.com)
Date: 09/03/04
- Next message: MDW: "Change Sort Order Of A Query"
- Previous message: Brendan Reynolds: "Re: Modules(index) and Modules("name") return different modules?"
- In reply to: Brian McGuigan: "Closing WORD Document Without Saving Changes"
- Next in thread: Brian McGuigan: "RE: Closing WORD Document Without Saving Changes"
- Reply: Brian McGuigan: "RE: Closing WORD Document Without Saving Changes"
- Messages sorted by: [ date ] [ thread ]
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?
>
- Next message: MDW: "Change Sort Order Of A Query"
- Previous message: Brendan Reynolds: "Re: Modules(index) and Modules("name") return different modules?"
- In reply to: Brian McGuigan: "Closing WORD Document Without Saving Changes"
- Next in thread: Brian McGuigan: "RE: Closing WORD Document Without Saving Changes"
- Reply: Brian McGuigan: "RE: Closing WORD Document Without Saving Changes"
- Messages sorted by: [ date ] [ thread ]