• Subject: Outlook - Prompt if user wants to exit
  • Author: Steven
  • Date: 19 Jul 2010
  • References:
I have a user who often closes Outlook by accident after reading an
email.

I checked the Quit event, but it doesn't have a Cancel option.

I noticed, however, that if there is unsaved VBA code in an Outlook
project, the user will be prompted to save the code or Cancel. If
Cancel is chosen, Outlook doesn't exit.

Is there a way fool Outlook into thinking a VBA project is unsaved,
thereby bringing up the save/cancel prompt upon exit?

I was looking into using VBIDE to programmatically add a line of code
into an Outlook module, but it looks this type of feature isn't
supported in Outlook...
19 Jul 2010Outlook - Prompt if user wants to exit.Steven
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)