OutlineCodes.Add method (Project)

Adds an OutlineCode object to an OutlineCodes collection.

Syntax

expression.Add (FieldID, Name)

expression A variable that represents an 'OutlineCodes' object.

Parameters

Name Required/Optional Data type Description
FieldID Required Long Specifies the type of custom field for the outline code. Can be one of the PjCustomField constants.
Name Required String The name of the outline code to add.

Return value

OutlineCode

See also

OutlineCodes Collection 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.