API Documentation > CorelDRAW > 2025-v26 > Window > IVGWindow
Window.Previous property
Gets the previous window
Syntax:
Property Get Previous() As Window
Remarks:
The Previous method returns a read-only reference to the previous window in a Windows collection.
Examples:
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