API Documentation > CorelDRAW > 2025-v26 > Window > IVGWindow
Window.Next property
Gets the next window
Syntax:
Property Get Next() As Window
Remarks:
The Next method returns a read-only reference to the next window in a Windows collection.
Examples:
The following VBA example displays the caption of the active window and then displays the caption of the next window in the collection.
Sub Test()
Dim Wnd As Window
Set Wnd = ActiveDocument.Windows(1)
MsgBox "The current window is: " & Wnd.Caption
Set Wnd = Wnd.Next
MsgBox "The next window is: " & Wnd.Caption
Set Wnd = Nothing 
End Sub