Access/VBA Library

Item Property

Returns a String containing the caption of the requested window.

Syntax

ActiveWindowList.Item( Index )
Parts
Name Type Description
ActiveWindowList   The name of an object of type ActiveWindowList
Index Long Required. a value between 1 and the value of the Count attribute.
ActiveWindowListtag:ActiveWindowList
Example
  '
  ' Print a list of all active windows
  '
  Dim WindowList As New ActiveWindowList
  Dim Index As Long

  For Index = 1 to WindowList.Count
     Debug.Print WindowList.Item(Index)
  Next Index