Object Model Reference : Classes : W : Window : Properties : Window.Previous |
Property Previous As Window
Member of Window
The Previous method returns a read-only reference to the previous window in a Windows collection.
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 |
Copyright 2013 Corel Corporation. All rights reserved.