View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Marco[_9_] Marco[_9_] is offline
external usenet poster
 
Posts: 15
Default Working with a .exe file

Hi all,

I have a software ending with .exe that i would like to open, type
the
word 'select' on it, press 'enter' and make it run.


I used the following code :


wb = Shell("Y:\Programs\Sel.exe", 1)
Application.Wait Now() + TimeValue("00:00:15")

SendKeys "select"
SendKeys "{ENTER}"

but the Sel.exe either copies the text "select" on my vbe editor
or shows the text "select" but it doesn't
recognize it.
When I open Sel.exe and I type "select" + "{ENTER}", without using vba
code,it works.

Any helps?


Thanks,
Marco