OutOfOfficeText Property (Session Object)
OutOfOfficeText Property (Session Object)
The OutOfOfficeText property contains the message text for an out-of-office (OOF) response. Read/write.
Syntax
objSession.OutOfOfficeText
Data Type
String
Remarks
When the OutOfOffice property is set to True, the Microsoft® Exchange Client uses the text in the OutOfOfficeText property to generate an automatic reply to incoming messages.
Example
This code fragment sets a messaging user to be considered out-of-office and prepares an appropriate response:
' Set current user to be out-of-office (OOF)
' assume objSession is a valid Session object
With objSession
.OutOfOffice = True
.OutOfOfficeText = "Im out of town until next Tuesday"
End With
MsgBox "Remember to set .OutOfOffice = False on Tuesday!"