title: How to catch Windows shell script errors launched from VBA code?
body: <p>I'm launching a batch script from VBA with the <code>Shell</code> function:</p>
  <pre><code>myRes = Shell(&quot;myScript.cmd&quot;)
  </code></pre>
  <p>Is there a way to know if it runs successfully or if there were execution errors?</p>