ItemProperties.Add method (Outlook)

Adds an ItemProperty object to the ItemProperties collection.

Syntax

expression.Add (Name, Type, AddToFolderFields, DisplayFormat)

expression A variable that represents an ItemProperties object.

Parameters

Name Required/Optional Data type Description
Name Required String The name of the new item property object.
Type Required OlUserPropertyType The type of the new ItemProperty.
AddToFolderFields Optional Variant Determines if the item property will be added to the folder fields.
DisplayFormat Optional Variant Defines the format of the field as it appears in a given folder.

Remarks

You can create a property of a type that is defined by the OlUserPropertyType enumeration, except for the following types: olEnumeration, olOutlookInternal, and olSmartFrom.

See also

ItemProperties Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.