ProjectBeforeResourceDelete Event

Occurs before a resource is deleted.

Syntax

Private Sub object**_ProjectBeforeResourceDelete(ByVal** res As MSProject.Resource, Cancel As Boolean)

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.

Cancel     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 ProjectBeforeResourceDelete event doesn't occur when changes have been made using a custom form.

Applies to | Application Object

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