Access/VBA Library

Activate Method

Brings the requested window to the front, e.g. activates the application.

Syntax

ActiveWindowList.Activate( Index )
Parameters
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
  '
  ' Find MyApplication in the list and activate
  '
  Dim WindowList As New ActiveWindowList
  Dim Index As Long

  Index = WindowList.Find("MyApplication")

  If Index Then
      ' Activate the Window
      WindowList.Activate Index
  End If