Previous Document Next Document

Object Model Reference : Classes : W : Window : Properties : Window.Next


Window.Next

Property Next As Window

Description

Member of Window

The Next method returns a read-only reference to the next window in a Windows collection.

VBA example

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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.