![]() |
![]() |
Window.Previous
Property Previous As Window
Member of Window
The Previous method returns a reference to the previous window in the Windows collection.
The Previous method returns a read-only value.
The following code 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
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.