Value Property
Collapse the table of content
Expand the table of content

ItemProperty.Value Property (Outlook)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns or sets a Variant indicating the value for the specified custom or explicit built-in property. Read/write.

expression .Value

expression A variable that represents an ItemProperty object.

Even though ItemProperty.Value allows you to get or set an explicit built-in property or a custom property, you can reference explicit built-in properties directly from the parent object, for example, ContactItem.Body. For more information on accessing properties in Outlook, see Properties Overview.

The following Visual Basic for Applications (VBA) example creates a contact item and sets its Body property

Sub ValueItemProperty() 
 Dim cti As Outlook.ContactItem 
 Dim itms As Outlook.ItemProperties 
 Dim itm As Outlook.ItemProperty 
 Set cti = Application.CreateItem(olContactItem) 
 cti.FullName = "Dan Wilson" 
 Set itms = cti.ItemProperties 
 Set itm = itms.Item("Body") 
 itm.Value = "My friend from school" 
End Sub
© 2016 Microsoft