execute .exe file and type a text string on it

M

Marco

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 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top