View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Marco[_9_] Marco[_9_] is offline
external usenet poster
 
Posts: 15
Default execute a .exe file and type a text string by vba on it

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 from excel.


I used the following code but vba doesn't recognize 'wd' as an
application but as a number.


Dim wd As Application


wd = Shell("Y:\--\Sel.exe", 1)


Application.SendKeys "select"


Do you have any clues about?


Thanks,
Marco