Share via


ActivePageWindow Property

Returns a PageWindowEx object that represents the window in which the current page is displayed.

expression.ActivePageWindow

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Example

The following example returns the PageWindowEx object for the Application object.

Private Sub GetActivePageWindow()
    Dim myPageWindow As PageWindowEx

    Set myPageWindow = ActivePageWindow
End Sub

The following example returns the PageWindowEx object from the WebWindowEx object.

Private Sub GetActivePageWindow()
    Dim myPage As PageWindowEx

    Set myPage = ActiveWebWindow.ActivePageWindow
End Sub

Applies to | Application Object | WebWindowEx Object