fiogf49gjkf0d AppActivate is used to activate, or change focus to, an open window (not a SLX window, those are all child windows, but one open in windows). It is part of the WshShell object and returns a boolean indicating success. This is most commonly used with SendKeys (also part of the WshShell object) to set focus to the window before sending keystrokes.
  For example, if the calc.exe was open you could use AppAvtivate to bring it to the foreground and set focus to it as follows.
 
 Dim shell       Set shell = CreateObject("WScript.Shell")     shell.Run "calc.exe"
      ' ensure calculator has focus     If shell.AppActivate("Calculator") Then         ' do something here like sendkeys to calculator     End If       Set shell = Nothing  |