OnBeforeWebPublish Event

See Also         Example         Applies To

Occurs before a web is published.

Syntax

Private Sub Application_OnBeforeWebPublish(pWeb As Web, Destination As String, Cancel As Boolean)

pWeb   Required Web. The specified Web object.

Destination   Required String. The URL of the target location.

Cancel   Required Boolean. Causes Microsoft FrontPage to abort the publish when set to True. When Cancel is programmatically set to True, the user can abort the save process by clicking the Cancel button on the form. Default is False.

Remarks

The OnBeforeWebPublish event is associated with the Application object. When the user publishes a web in Microsoft FrontPage, the OnBeforeWebPublish event fires and executes the code that you specified within the event procedure.