View Single Post
 
Old 05-08-2018, 01:57 AM
texMan texMan is offline Windows 10 Office 2016
Novice
 
Join Date: Nov 2017
Posts: 12
texMan is on a distinguished road
Default 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
Reply With Quote