Previous Document Next Document

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


Window.Previous

Property Previous As Window

Description

Member of Window

The Previous method returns a read-only reference to the previous window in a Windows collection.

VBA example

The following VBA example displays the caption of the current window and then displays the caption of the preceding window in the Windows collection.

Sub Test()
 MsgBox "The current window is: " & ActiveDocument.ActiveWindow.Caption
 MsgBox "The previous window is: " & ActiveDocument.ActiveWindow.Previous.Caption
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.