Application.OnPageNew Event

SharePoint Designer Developer Reference

Occurs when a page is created.

Syntax

Private Sub expression_OnPageNew(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 new page.

Remarks

When the user creates a new page within a frameset, the OnPageNew event is fired only once—when the page containing the frameset tags is opened. Then Office SharePoint Designer executes the code within the event procedure.

Note

The OnPageNew event fires for the default frameset only, even if more frames are on the page. This event fires only if Office SharePoint Designer is in Page view. If Office SharePoint Designer is in any other view, the OnPageNew event does not fire.

See Also