![]() |
|
#1
|
|||
|
|||
|
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 |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
start a macro with command Line startup switches
|
Fesazu | Word | 3 | 02-08-2018 12:15 AM |
Start macro when placeholder gets focus
|
PellePetimeter | Word VBA | 5 | 03-16-2017 04:26 AM |
| difference between scheduled start and start | ketanco | Project | 3 | 01-15-2015 07:53 AM |
| Should be a simple macro, need a start | Jamtart | PowerPoint | 7 | 08-13-2012 06:11 AM |
| automatic start of macro + help on writing helper function | vsempoux | Word | 3 | 10-09-2009 03:01 AM |