View Full Version : Quit Procedure in Outlook
The general application procedures available in Outlook include the Quit procedure. It runs when you exit Outlook. It seems to run "after" Outlook ends rather than "just before". In particular, variables set as public or global for the application no longer contain the values posted by procedures running before Exit. Is this generally true for Outllok or just my version?
Thanks
Potemkin
02-15-2007, 09:34 AM
I've been hacking at the same problem.
I want to alert the user that he is exiting and give him the option to change his mind.
OK... "the user" is me.
I've gone through the object model extensively and can't find a way.
I'm sure it must be possible, as Outlook gives you the option to change your mind if you have something in the Outbox... maybe that's a PRIVATE method?
Any Ideas?
Steiner
02-16-2007, 12:29 AM
This seems to be a common problem. Have a look here: http://support.microsoft.com/?scid=kb%3Ben-us%3B292796&x=16&y=13
Daniel
Potemkin
02-16-2007, 02:04 AM
Thanks Steiner-
This looks like the right direction!
:thumb
Guys,
In the ThisOutlookSession, rather than put your code in Application_Quit() use the Application_Close() function. This allows code to run and hasn't yet killed all the variable and program data.
:*)
Steiner
02-19-2007, 06:12 AM
Hi u6ik,
I can't find Application_Close in Outlook 2003. Maybe it's not implemented there yet?
Daniel
Potemkin
02-19-2007, 07:38 AM
Hi u6ik -
Which version of Outlook are you using? 2007?
Regards,
Nico
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.