Re: Using AUTOEXIT
From: Jay Freedman (jay.freedman_at_verizon.net)
Date: 11/04/04
- Next message: Paolo B: "Re: Deactivate function Print"
- Previous message: Jay Freedman: "Re: Deactivate function Print"
- In reply to: Steve Wylie: "Using AUTOEXIT"
- Next in thread: Steve Wylie: "Re: Using AUTOEXIT"
- Reply: Steve Wylie: "Re: Using AUTOEXIT"
- Reply: Steve Wylie: "Re: Using AUTOEXIT"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 4 Nov 2004 14:37:12 -0500
Hi Steve,
See http://word.mvps.org/FAQs/MacrosVBA/PseudoBeforeClose.htm.
-- Regards, Jay Freedman Microsoft Word MVP FAQ: http://word.mvps.org Steve Wylie wrote: > We're having some problems with our network at the moment. One of the > new "features" is that sometimes, when you close a document in Word, > Word also exits completely as well. I wanted to put an AutoExit macro > on everyone's machines to ask "You are about to quit Word - is this > okay?" [Yes/No] whenever Word tries to exit. If they click Yes, Word > will continue to exit; if they click No, Word will not exit and will > just sit there with a blank "gray" screen. > > If Word macros were programmed in Javascript I could do something like > ONEXIT="Return MsgBox()" and I could have Msgbox return FALSE (which > would cancel the exit procedure) or TRUE (which would exit as normal). > > How do I do the same thing in VBA? Is there a way to get the macro to > cancel the exit procedure in its tracks? > > Steve Wylie
- Next message: Paolo B: "Re: Deactivate function Print"
- Previous message: Jay Freedman: "Re: Deactivate function Print"
- In reply to: Steve Wylie: "Using AUTOEXIT"
- Next in thread: Steve Wylie: "Re: Using AUTOEXIT"
- Reply: Steve Wylie: "Re: Using AUTOEXIT"
- Reply: Steve Wylie: "Re: Using AUTOEXIT"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|