Previous Document Next Document

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


Window.Index

Property Index As Long

Description

Member of Window

The Index property returns the index number of a window in a Windows collection.

The Index property returns a read-only value.

VBA example

The following VBA 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

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.