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