Application.CustomFieldValueListAdd method (Project)

Adds an item to the value list for a custom field.


expression. CustomFieldValueListAdd( _FieldID_, _Value_, _Description_, _Phonetic_, _Index_, _FieldDefault_ )

expression A variable that represents an Application object.


Name Required/Optional Data type Description
FieldID Required Long The custom field. Can be one of the PjCustomField constants.
Value Optional String The value to add to the list.
Description Optional String A description of the value.
Phonetic Optional String The phonetic spelling of Value, used for sorting into syllabary order in Japanese. For languages other than Japanese, Phonetic is ignored.
Index Optional Integer The position to add the item specified with Value, relative to other items in the value list. If Index is n + 2 or greater, where n is the number of existing items, the item is added at n + 1. The default value is n + 1.
FieldDefault Optional Boolean True if the value specified with Value functions as the default for the custom field. The default value is False.

Return value


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.