Application.OnPageOpen Event

SharePoint Designer Developer Reference

Occurs when a page is opened.

Syntax

Private Sub expression_OnPageOpen(ByVal pPage As PageWindow)

expression   A variable that represents an Application object that has been declared by using the WithEvents option in a class module.

Parameters

Name Required/Optional Data Type Description
pPage Required PageWindow The window that contains the page that is opened.

Remarks

The OnPageOpen event is associated with the Application object. When the user opens a page, Office SharePoint Designer opens the frameset for the page and fires the OnPageOpen event for the default frameset. Then Office SharePoint Designer executes the code that you specified within the event procedure.

Note

The OnPageOpen event fires for the default frameset only, even if more frames are on the page. The OnPageOpen event fires only if the page is not open.

See Also