PageWindows Property

Microsoft FrontPage Visual Basic

PageWindows Property

Returns the specified PageWindowEx object.

expression.PageWindows

expression    Required. An expression that returns a WebWindowEx object.

Example

The following example retrieves a page window that contains the page Spain.htm and sets the view mode to Preview.

Note  To run this procedure, you must have an open Web site that contains an open page called Spain.htm, or substitute a file of your choice.

    Private Sub SetPagePreview()
    Dim myPage As PageWindowEx

    Set myPage = ActiveWebWindow.PageWindows("Spain.htm")
    myPage.ViewMode = fpPageViewPreview
End Sub