Hello,
I have created two EXE files from Excel files.
In one file I have a vba code and with a command button I want to open the second exe file.
In order to get this I use the following code:
Sub tsh()
Dim strProgramName As String
End Sub
Problem is that the “This workbook.path” give me an error message. I think it’s because the exe is not a “workbook”… Any idea how can solve this problem?
I have created two EXE files from Excel files.
In one file I have a vba code and with a command button I want to open the second exe file.
In order to get this I use the following code:
Sub tsh()
Dim strProgramName As String
Code:
strProgramName = ThisWorkbook.Path & "\voorbeeldexe.exe"
Call Shell(strProgramName, vbNormalFocus)
ThisWorkbook.Save
Application.Quit
Problem is that the “This workbook.path” give me an error message. I think it’s because the exe is not a “workbook”… Any idea how can solve this problem?
Last edited by a moderator: