0 out of 1 rated this helpful - Rate this topic

EventInfo Object (Project)

Represents cancellation information for an event.

The EventInfo object has one Boolean property, named Cancel. Project 2013 uses the EventInfo object instead of the Cancel parameter that is used for events in some previous versions of Project.

The following event handler examines new resource assignments and cancels them if they are for the specified resource.

Private Sub App_ProjectBeforeAssignmentChange2(ByVal asg As Assignment, ByVal Field As PjAssignmentField, _ 
    ByVal NewVal As Variant, EventInfo As Object) 
 
    If Field = pjAssignmentResourceName And NewVal = "Lisa Jones" Then 
        MsgBox "Lisa is no longer available for assignment!" 
        EventInfo.Cancel = True 
    End If 
End Sub

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.