Activates an application or window currently running on Windows.
The title that appears in the title bar of the application (String).
True or False specifying if the application has the focus (Boolean).
The "title" can also be the task id of the application (returned from the Shell function).
If "wait" = True, then the calling application waits until it has the focus before activating the specific application.
If "wait" = False, then the specified application is activates immediately.
If "wait" is left blank, then False is used.
This subroutine cannot change whether the application or window is maximised or minismed, it only changes focus.
You can use the Shell function to change the status of the window (maximised or minimised).
In .NET this is available in Microsoft.VisualBasic namespace.
AppActivate "Microsoft Word"
Call AppActivate("Microsoft Word")
Dim dbAppID as Double
dbAppID = Shell("C:\Word\Winword.exe, 1)