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