A user asked if he could turn on Out of Office every time he closed Outlook. While this is not possible using native features built into Outlook, you can use VBA to prompt you to turn on Out of Office when you close Outlook 2007 or Outlook 2003. (It may work with older versions but will not work with newer versions of Outlook.)
This code sample uses the CDO library, which is no longer included with Outlook, beginning with Outlook 2010. It works with (and was tested on) Outlook 2007 and Outlook 2003 but will not work with Outlook 2010 and newer.
Private Sub Application_Quit() Msg = MsgBox("Turn on Out of Office?", vbYesNo) If Msg <> vbYes Then Exit Sub Set oSession = CreateObject("MAPI.Session") oSession.Logon "", "", False, False ' If you want to set the OOF text. 'oSession.OutOfOfficeText = "OOF reply text." ' Turning on Out of Office oSession.OutOfOffice = True oSession.Logoff Set oSession = Nothing End Sub