ActiveWebWindow Property

       

Returns a WebWindowEx object for the Application or WebEx objects.

Example

This example prints the value of the ActiveDocument.nameProp property for the WebEx object.

Note   To run this example, create a form with a command button called cmdActiveWebWindowDisplay and a label called lblWebWindowDisplay. Paste the following code in the code window. You must have a FrontPage-based web page open for this procedure to return a document name.

Private Sub cmdActiveWebWindowDisplay_Click()
    On Error Resume Next
    Dim myCurrentWebWindow As WebWindowEx

    Set myCurrentWebWindow = Application.ActiveWebWindow

    With myCurrentWebWindow
        lblWebWindowDisplay.Caption = .ActiveDocument.nameProp
    End With
End Sub