title: xlwings Error when I leave the workbook with macro running
body: <p>I have a variety of python functions that I call from xlwings. These functions pull data from my workbook, do things with it (open corresponding csv file, clean the data, perform calculations, etc). Everything works fine if I sit there and watch it, but the moment I try to switch to a program outside the workbook (like Chrome), xlwings gives an error. The specific error depends on where during the program execution it is when I click away, but examples include:</p>
  
  <pre><code>pywintypes.com_error: (-2147418111, 'Call was rejected by callee.', None, None)
  pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2146777998), None)
  </code></pre>
  
  <p>I also have these problems if I click within the workbook (to select a cell or minimize it), but that doesn't concern me. If I manage to leave the workbook, such as when a non-xlwings part of my code is running, I don't get any errors.</p>
  
  <p>Any thoughts?</p>
  
  <p>Thanks,
  TDM</p>