ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open a Program (https://www.excelbanter.com/excel-programming/390185-open-program.html)

Mike

Open a Program
 
Is it possiable to open a .exe program with excel macro?

Thanks Mike


Gord Dibben

Open a Program
 
Sub Convert_units()
Dim taskID As Variant
On Error Resume Next
Shell ("C:\Utilities\Convert\Converter.exe"), vbNormalFocus
If Err < 0 Then _
MsgBox "Converter.exe is Missing"
End Sub

Adapt to suit the *.exe you want to run


Gord Dibben MS Excel MVP

On Fri, 25 May 2007 19:21:00 -0700, Mike wrote:

Is it possiable to open a .exe program with excel macro?

Thanks Mike



Mike

Open a Program
 
Thankyou Gord
Worked like a charm

"Gord Dibben" wrote:

Sub Convert_units()
Dim taskID As Variant
On Error Resume Next
Shell ("C:\Utilities\Convert\Converter.exe"), vbNormalFocus
If Err < 0 Then _
MsgBox "Converter.exe is Missing"
End Sub

Adapt to suit the *.exe you want to run


Gord Dibben MS Excel MVP

On Fri, 25 May 2007 19:21:00 -0700, Mike wrote:

Is it possiable to open a .exe program with excel macro?

Thanks Mike





All times are GMT +1. The time now is 05:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com