Application.ProjectBeforePublish event (Project)

Occurs before a Publish operation is placed on the server queue. The ProjectBeforePublish event can be cancelled. Project Professional only.

Syntax

expression. ProjectBeforePublish( _pj_, _Cancel_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
pj Required Project Project object.
Cancel Required Boolean True to cancel the Publish job.

Return value

Nothing

Remarks

The ProjectBeforePublish event is commonly used to determine whether certain conditions are satisfied and to cancel publishing if the conditions are not met.

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.