OnWebClose Event

See Also         Example         Applies To

Occurs when a web is closed.

Syntax

Private Sub Application_OnWebClose(pWeb As Web, Cancel As Boolean)

pWeb   Required Web. A Web object.

Cancel   Required Boolean. True if the closing process was cancelled through the user interface, or if Cancel was set to True. Default is False.

Remarks

The OnWebClose event is associated with the Application object. When you close a web, the OnWebClose event fires and executes the code that you specified within the event procedure.