Thanks, that version works...but only when I am debugging and stepping
through the Document_Close() event line by line. I have even put a msgbox
right before the Close event is called to verify that I am there. When I
debug, the message displays, then the document closes. When I run a Close
command from within Word, I still receive the prompt to save.
Do you know what other event could be interfereing here?
> Just try Thisdocument.Close SaveChanges:=False
>
[quoted text clipped - 14 lines]
> >
> > Again, this is to disable the Save prompt when closing the document.
MWK - 04 Jun 2005 14:08 GMT
Try this Thisdocument.Saved=True
This should trick Word into thinking the document has been saved and should
not prompt you to save.
> Thanks, that version works...but only when I am debugging and stepping
> through the Document_Close() event line by line. I have even put a msgbox
[quoted text clipped - 25 lines]
>> >
>> > Again, this is to disable the Save prompt when closing the document.
MWK - 04 Jun 2005 14:18 GMT
I played with this and it will work on existing documents. It doesn't work
if the document has never been saved before.
> Thanks, that version works...but only when I am debugging and stepping
> through the Document_Close() event line by line. I have even put a msgbox
[quoted text clipped - 25 lines]
>> >
>> > Again, this is to disable the Save prompt when closing the document.