title: Closing Workbook after opening it through VBA - Excel
body: <p>I have the code below. I've called the excel document from a VBA code. However, after pressing the closing button on the workbook, it doesn't close until I stop the macro. I want to be able to close the document without stopping the macro. i.e. the main userform is still running behind. I can close the excel workbook from the close button top right of the workbook itself.</p>
  
  <p>Anyone happen to know how to solve this?</p>
  
  <pre><code>Private Sub CommandButton7_Click()
    Workbooks("master system.xlsm").Activate
    Workbooks.Open ActiveWorkbook.Path &amp; "\Toolbox\Define\PPST.xlsx"
  
  End Sub
  </code></pre>