Compartilhar via


Window.Active Property

Word Developer Reference

True if the specified window is active. Read-only Boolean.

Syntax

expression.Active

expression   Required. A variable that represents a Window object.

Example

This example activates the first window in the Windows collection, if the window isn't currently active.

Visual Basic for Applications
  Sub ActiveWin()
    If Windows(1).Active = False Then Windows(1).Activate
End Sub

See Also