AppActivate Statement

 

AppActivate “app”

 

Activates an application.

 

The parameter app is a string expression and is the name that appears in the title bar of the application window to activate.

 

Related Topics: Shell, SendKeys

 

Example:

 

 

Sub Main ()

   AppActivate "Microsoft Word"

   SendKeys “%F,%N,Cypress Enable”,True

   Msg = “Click OK to close Word”

   MsgBox Msg

   AppActivate “Microsoft Word”  

   SendKeys “%F,%C,N”, True      

End Sub