Body Property

Microsoft Outlook Visual Basic

Show All

Body Property

       

Returns or sets a String representing the clear-text body of the Outlook item. Read/write.

Note The EditorType property is not affected when you merely access the Body property of the item (as in MsgBox myItem.Body), but when you reset the Body property (as in myItem.Body = "This is a new body"), the EditorType reverts back to the user's default editor.

expression.Body

expression   Required. An expression that returns one of the objects in the Applies To list.

Example

This VBScript example uses the Open event of an item to set its Body property.

Function Item_Open()
    Item.Body = "This is the message body."
End Function