borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Is there a way to read individual column data from a VBA listbox?)Next Topic (How to call Macro of Excel in VB6.0) New Topic New Poll Post Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : AutoClose() vs DocClose(), FileClose(), FileExit(), et al.
Poster Message
Antares
Level: Graduate

Registered: 29-07-2005
Posts: 9

icon AutoClose() vs DocClose(), FileClose(), FileExit(), et al.

I'm trying to replace the Save? Yes/No/Cancel dialog that comes up when you close a document that has unsaved changes in Word.  It was my hope to use the AutoClose macro so that I wouldn't have to catch each of the different close methods seperately (DocClose, FileClose, FileCloseAll, FileExit, FileCloseOrCloseAll, FileCloseOrExit) and because I can't find one that catches closing using the red X button.  

The question is, how do I make the Cancel button stop the document from closing?  I figure it must be possible since AutoClose fires before the standard Word dialog and that dialog has a working Cancel button on it.

Thanks.

25-05-2006 at 05:44 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VBA (Access, Excel, Word, ...) : AutoClose() vs DocClose(), FileClose(), FileExit(), et al.
Previous Topic (Is there a way to read individual column data from a VBA listbox?)Next Topic (How to call Macro of Excel in VB6.0) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder