![]() |
![]() |
Window.Index
Property Index As Long
Member of Window
The Index property returns the index of a window in the Windows collection.
The Index property returns a read-only value.
The following code example displays the caption for each window in the Windows collection of the active document:
Sub Test() Dim Wnd As Window Dim s As String For Each Wnd In ActiveDocument.Windows s = s & Wnd.Index & " - " & Wnd.Caption & vbCr Next Wnd MsgBox "The current document contains the following windows: " & vbCr & s Set Wnd = Nothing End Sub
![]() |
![]() |
![]() |
Copyright 2007 Corel Corporation. All rights reserved.