title: Close Excel completely after the final workbook is closed
body: <p>When I close the workbook using </p>
  
  <pre><code>MyWorkbook.Close()
  </code></pre>
  
  <p>an empty Excel container is left behind. Something like
  <a href="https://i.stack.imgur.com/mjZ52.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mjZ52.jpg" alt="this"></a> </p>
  
  <p>but with newer version it would be gray.</p>
  
  <p>How can I close this one using C# ? I am asking because I have an issue with Excel 2016, in which after </p>
  
  <pre><code>//A modal form is opened
  MyWorkbook.Close();
  Application.Workbooks.Open("B.xls");
  </code></pre>
  
  <p>B.xls is opened in another instance, leaving me with this blank and another window with B.xls. This only happens for Excel 2016 and ONLY when another form is opened before calling these. In other Excel, or without the form opened, B.xls will be opened inside this gray container.</p>