OutlineCode.FieldID property (Project)

Gets the identification number of the local outline code. Read-only PjCustomField.

Syntax

expression. FieldID

expression A variable that represents an OutlineCode object.

Remarks

To get the ID of an enterprise text custom field, use the FieldNameToFieldConstant method.

Note

In Office Project 2007 and later versions, the enterprise constants in PjCustomField don't apply. Project Server can have an unlimited number of enterprise text custom fields that use a hierarchical lookup table. For usability and performance reasons, the number of enterprise custom fields should be limited to a few hundred or less.

You can access project outline codes and custom fields through the project summary task, which is Task(0). For a task outline code, the FieldID can be one of the following PjCustomField constants:

pjCustomTaskOutlineCode1
pjCustomTaskOutlineCode2
pjCustomTaskOutlineCode3
pjCustomTaskOutlineCode4
pjCustomTaskOutlineCode5
pjCustomTaskOutlineCode6
pjCustomTaskOutlineCode7
pjCustomTaskOutlineCode8
pjCustomTaskOutlineCode9
pjCustomTaskOutlineCode10

For a resource outline code, the FieldID can be one of the following PjCustomField constants:

pjCustomResourceOutlineCode1
pjCustomResourceOutlineCode2
pjCustomResourceOutlineCode3
pjCustomResourceOutlineCode4
pjCustomResourceOutlineCode5
pjCustomResourceOutlineCode6
pjCustomResourceOutlineCode7
pjCustomResourceOutlineCode8
pjCustomResourceOutlineCode9
pjCustomResourceOutlineCode10

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.