A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Out of Office



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 26th 07, 04:34 PM posted to microsoft.public.outlook.program_vba
Noella
external usenet poster
 
Posts: 1
Default Out of Office

Is it possible to programm Outlook to switch ON Out of Office when closing
Outlook?

Thanks

Ads
  #2  
Old July 26th 07, 05:02 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Out of Office

Not using the Outlook object model, unless you're running on Outlook 2007.

To set OutOfOffice you would have to set the MAPI property PR_OOF_STATE
(0x661D000B) to False. That property is located in the default Store object,
in its Fields collection.

To set the OutOfOfficeText message you would set the text in a hidden
message in the Inbox with a MessageClass of
PM.Note.Rules.OofTemplate.Microsoft. The message text is the Body of that
hidden item.

If you aren't running Outlook 2007 you'd have to access that property and
hidden item using a low level API such as CDO 1.21 or Extended MAPI (C++ or
Delphi code only) or Redemption.(www.dimastr.com/redemption).

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Noella" wrote in message
...
Is it possible to programm Outlook to switch ON Out of Office when closing
Outlook?

Thanks


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
create a letter from office 2007 contacts like in office 2003 Stan Hamlyn Outlook - Using Contacts 1 June 7th 07 06:51 PM
unistalled Office 2007 reinstalled Office 2003 error jimmykid4657 Outlook - Installation 1 May 22nd 07 09:23 PM
Revert Office 2007 Toolbars to Office 2003 type format ? steveb Outlook - General Queries 2 April 10th 07 01:23 AM
Transfer Contacts Microsoft Office 2000 to Office for Mac 2004 Alfred Esmeijer Outlook - Using Contacts 1 November 27th 06 03:57 PM
Office 2003 AND Office XP - aka Office 2002 rrose selavy Outlook - General Queries 3 January 14th 06 11:14 AM


All times are GMT +1. The time now is 07:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.