Window.Activate Method

Word Developer Reference

Activates the specified window.

Syntax

expression.Activate

expression   Required. A variable that represents a Window object.

Example

This example activates the next window in the Windows collection.

Visual Basic for Applications
  Sub NextWindow()
    'Two or more documents must be open for this statement to execute.
    ActiveDocument.ActiveWindow.Next.Activate
End Sub

See Also