Start .net Exe from Word VBA macro
Hi,
whenever I start my App (Windows Form app) from a Word VBA macro, it crashes without a message. But it works, when I use the same command from the command prompt.
Example Code:
**************************
Sub Test
Dim cfile As string
Set wshshell = CreateObject ("WScript.Shell")
cFile = """C:\ Program Files (x86)\ myProgram CP\start.exe"""
wshshell.Run cfile, 1, true
Set wshshell = Nothing
End Sub
**************************
Does anyone have a hint?
Greetings, Jürgen
|