ProjectAssignmentNew Event

Occurs when a new assignment is created.

Syntax

Private Sub object_ProjectAssignmentNew(ByVal   pj   As MSProject.Project,   ID   As Long)

object     An object of type Application declared with events in a class module. For more information, see Using events with the Application object.

pj     The project where the assignment was just created.

ID     The ID of the assignment that was just created.

Remarks

Project events do not occur when the project is embedded in another document or application.

Applies to | Application Object

See Also | ProjectResourceNew Event | ProjectTaskNew Event