title: Delete worksheets in another workbook and close
body: <p>I have two workbooks. Let call them wb1 and wb2. All my code resides in wb1. As part of the code in wb1, I would like to delete some worksheets in wb2, close wb2, and then continue my code in wb1.</p>
  
  <p>My problem is that when I delete the worksheets in wb2 I have now activated wb2 and stopped the code in wb1 from running.</p>
  
  <p>Does any have experience with this? Are there any workarounds?</p>
  
  <p>When I run the below, the execution stops after deleting wsControl. I get stuck at wsTables.</p>
  
  <pre><code>Dim wb As Workbook
  Dim wsControl As Worksheet, wsTables As Worksheet
  Set wb = ActiveWorkbook
  Set wsControl = wb.Sheets("Control")
  Set wsTables = wb.Sheets("Tables")
  
  wsControl.Delete
  wsTables.Delete
  
  wb.Close True
  </code></pre>
  
  <p>Thank you!</p>