Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Start and Stop MS Outlook 2010 Out of Office assist

Status
Not open for further replies.

TJVFree

Technical User
Nov 22, 2010
236
US
I’m looking for a way that I can have my Outlook Out of Office turn on at 4pm and then off at 8am. Then on weekends just have it stay on.

Does anyone know of any VBA code that would do this?


TCB
 
Here's the first part:

Code:
[blue]Public Sub OOF(bState As Boolean)
    Const PR_OOF_STATE = "[URL unfurl="true"]http://schemas.microsoft.com/mapi/proptag/0x661D000B"[/URL]
    Application.Session.DefaultStore.PropertyAccessor.SetProperty PR_OOF_STATE, bState
End Sub[/blue]

Called as follows:

[tt]OOF True ' enables out of office
OOF False ' disables out of office[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top