![]() |
Running a .exe from VBA
Hi All, Does anyone know if it is possible (and if so how?) to run a .exe fil from VBA in excel? Specifically, I would like to add a command butto to my worksheet and when it is pressed it runs a .exe file which is i the same folder as the excel workbook. The .exe file will not be use in any way by excel; it will only display information for the user. Any help would be appreciated. Best Regards, Aaro -- Aaron197 ----------------------------------------------------------------------- Aaron1978's Profile: http://www.excelforum.com/member.php...fo&userid=3120 View this thread: http://www.excelforum.com/showthread.php?threadid=54546 |
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 |
Running a .exe from VBA
Look at the Shell function in the VBA help.
RBS "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 |
Running a .exe from VBA
Sweet. Thanks chaps -- Aaron197 ----------------------------------------------------------------------- Aaron1978's Profile: http://www.excelforum.com/member.php...fo&userid=3120 View this thread: http://www.excelforum.com/showthread.php?threadid=54546 |
All times are GMT +1. The time now is 01:02 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com