Access/VBA Library


Provides a collection of active Windows applications currently running.

The list contains the captions of the visible windows. Windows without an caption are ignored. The main purpose of this class is to provide the possibility to check if a specific program is running and if it does, to activate it like the Windows Alt+Tab feature. See the example below for further details of the usage of this class.

Class: ActiveWindowList
  ' Activate "MyApplication"
  Dim WindowList As New ActiveWindowList
  Dim Index As Long

  With WindowList
      Index = .Find( "MyApplication" )
      If Index > 0 Then
         .Activate Index
       End If
  End With