#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
Is there really spaces in front of the folder names?
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#3
|
|||
|
|||
Sorry this was my mistake. There is are no spaces at the beginning.
This is correct: cFile = """C:\Program Files (x86)\myProgram CP\start.exe""" The application starts with a splash screen and then it is killed without any message. |
|
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 |