Previous Document Next Document

Object Model Reference : Classes : W : Window : Properties : Window.Active


Window.Active

Property Active As Boolean

Description

Member of Window

The Active property returns whether a window is active (that is, currently in use). If the window is active, a value of True is returned.

The Active property returns a read-only value.

VBA example

The following VBA example displays the caption for the active window.

Sub Test()
 Dim Wnd As Window
 For Each Wnd In ActiveDocument.Windows
  If Wnd.Active = 1 Then
   MsgBox Wnd.Caption & " is the active window."
  End If
 Next Wnd
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.