Creates a new user property in the UserProperties collection, and returns the new property as a UserProperty object.
Syntax
objUserProperties.Add(Name, Type, [AddToFolderFields], [DisplayFormat])
objUserProperties Required. An expression that returns a UserProperties collection object.
Name Required String. The name of the property.
Type Required Long. The type of the property. Can be one of the following OlUserPropertyType constants: olCombination(19), olCurrency(14), olDateTime(5), olDuration(7), olFormula(18), olKeywords(11), olNumber(3), olPercent(12), olText(1), or olYesNo(6).
AddToFolderFields Optional Boolean. True if the property will be added to the folder fields, False if not. The default value is True.
DisplayFormat Optional Long. The index of the format of the specified OlUserPropertyType constant. For more information, see the "Remarks" section.
Remarks
To look up the index of a format to specify for the DisplayFormat argument, follow these steps.