title: running c# console application from excel and wait for app to finish
body: <p>I am running a c# console application from within Excel using the line of code below. The code is working fine. The process takes about 20 seconds to run. I was wondering how I get my vba code to wait for the c# application to finish before continuing execution of the code following this line?</p>
  
  <p>I do not want to use a pause or similar function.</p>
  
  <pre><code> Dim id As Integer
   id=Shell("""C:\MyFolder\bin\Debug\MyApp.exe"" /PARA1 " &amp; p1 &amp; " /PARA2 " &amp; p2, vbNormalFocus)
  </code></pre>