Window.Activate Method (Word)

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.

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

See Also

Concepts

Window Object Members

Window Object