The OutOfOfficeText property contains the message text for an out-of-office (OOF) response. Read/write.
objSession.OutOfOfficeText
String
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.
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 = "I'm out of town until next Tuesday"
End With
MsgBox "Remember to set .OutOfOffice = False on Tuesday!"