~J~ said:Well I'm sure I'm missing the point here, but can you not just use the Shell command on the click of a button, or within your code
dim objApp
Set objApp = CreateObject("WScript.Shell")
objApp.run "yourprogram.exe"
Set objApp = Nothing
sfx said:This should do the trick.
Code:Private Sub CommandButton1_Click() Dim RetVal As Double RetVal = Shell("c:\windows\notepad.exe", vbNormalFocus) End Sub
Dim dTaskID As Double, path As String, file As String
path = "C:\program files\Solid Edge V16\Program\edge.exe"
file = "C:\part1.par"
dTaskID = Shell(path + " " + file, vbNormalFocus)
'MsgBox ("Program loaded")
End
Hybrids said:Nevermind managed to do some google searchs on the Shell command and found a similar example
Code:Dim dTaskID As Double, path As String, file As String path = "C:\program files\Solid Edge V16\Program\edge.exe" file = "C:\part1.par" dTaskID = Shell(path + " " + file, vbNormalFocus) 'MsgBox ("Program loaded") End