Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

UserProperty Object (Outlook)

Represents a custom property of an Outlook item.

Use UserProperties(index), where index is a name or index number, to return a single UserProperty object.

Use the Add method to create a new UserProperty for an item and add it to the UserProperties object. The Add method allows you to specify a name and type for the new property.

Note Note

When you create a custom property, a field is added in the folder that contains the item (using the same name as the property). That field can be used as a column in folder views.

The following example adds a custom text property named MyPropName.

Set myProp = myItem.UserProperties.Add("MyPropName", olText)
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.