View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Running a .exe from VBA

Shell it

Shell "D:\Program Files\Myob Premier Trial\Myobp.exe", 1


--
HTH

Bob Phillips

(replace somewhere in email address with googlemail if mailing direct)

"Aaron1978" wrote
in message ...

Hi All,

Does anyone know if it is possible (and if so how?) to run a .exe file
from VBA in excel? Specifically, I would like to add a command button
to my worksheet and when it is pressed it runs a .exe file which is in
the same folder as the excel workbook. The .exe file will not be used
in any way by excel; it will only display information for the user.

Any help would be appreciated.

Best Regards,

Aaron


--
Aaron1978
------------------------------------------------------------------------
Aaron1978's Profile:

http://www.excelforum.com/member.php...o&userid=31201
View this thread: http://www.excelforum.com/showthread...hreadid=545466