S
Steve Wylie
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
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