BeforeClose Event

Occurs before the project closes. If the project has changed since it was opened, but has not been saved, this event occurs before the user is prompted to save the project.

Syntax

Private Sub Project_BeforeClose(ByVal pj As MSProject.Project)

pj     The project that is being closed.

Remarks

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

Applies to | Project Object, Projects Collection Object

See Also | Deactivate Event | ProjectBeforeClose Event