title: Auto Close Workbook
body: <p>I have 2 workbooks. Workbook A &amp; B.</p>
  
  <p>When workbook A opens, workbook B opens automatically. Auto open workbook macro is working nicely. But when I want to close workbook A, the workbook B should close together automatically. But with the auto close macro below, it doesn't seems to work. Please advise where went wrong :</p>
  
  <pre><code>Private Sub Workbook_Close()
  If Workbooks.Close("A.xlxm") Then
  ThisWorkbook.Close
  End If
  End Sub
  </code></pre>
  
  <p>The code above is pasted in workbook B's ThisWorkbook.</p>