I am running a sub from a userform that is supposed to run an exe file, found in the working folder, as follows:
Sub RunProcessor()
If MsgBox(\"Run simulatio
ChDir
will only work to change the current directory to another on the same drive - you need to use ChDrive
first if you want to switch to a folder on a different drive.
Better yet, pass the full path to Shell and skip changing the current directory.
Sub RunProcessor()
If MsgBox("Run simulation?", vbYesNo) = vbYes Then
Shell (ThisWorkbook.Path & "\runsims.exe")
End If
End Sub