EventInfo object (Project)
Represents cancellation information for an event.
Remarks
The EventInfo object has one Boolean property, named Cancel. Project uses the EventInfo object instead of the Cancel parameter that is used for events in some previous versions of Project.
Example
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
Properties
Name |
---|
Cancel |
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.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for