ProjectBeforeResourceDelete2 Event

Occurs before a resource is deleted. Uses the EventInfo object parameter.

Syntax

Private Sub object**_ProjectBeforeResourceDelete2(ByVal** res As MSProject.Resource, Info As MSProject.EventInfo)

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

res     The resource that is being deleted.

Info     EventInfo.Cancel is False when the event occurs. If the event procedure sets this argument to True, the resource is not deleted.

Remarks

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

The ProjectBeforeResourceDelete2 event doesn't occur when changes have been made using a custom form.

Applies to | Application Object

See Also | ProjectBeforeAssignmentDelete Event | ProjectBeforeResourceChange Event | ProjectBeforeResourceDelete Event | ProjectBeforeResourceNew Event | ProjectBeforeTaskDelete Event