Parent Property

Microsoft Outlook Visual Basic

Parent Property

       

Returns the parent Object of the specified object. Read-only.

expression.Parent

expression    Required. An expression that returns an Outlook object.

Example

This VBScript example uses the Reply event and sets the Sent Items folder for the reply item to the folder in which the original item resides.

Function Item_Reply(ByVal myResponse)
    Set myResponse.SaveSentMessageFolder = Item.Parent
End Function