title: Excel vba, Opening new Application: Microsoft Excel is waiting for another application to complete an OLE action
body: <p>I have the following vba code. It creates new Excel application and uses it to open a file. Then it MsgBoxes some cell's value in this file.    </p>
  
  <pre><code>Sub TestInvis()
          Dim ExcelApp As Object
          Set ExcelApp = CreateObject("Excel.Application")
  
          Dim WB As Workbook
          Set WB = ExcelApp.Application.Workbooks.Open("Y:\vba\test_reserves\test_data\0503317-3_FO_001-2582480.XLS")
  
          Dim title As String
          title = WB.Worksheets(1).Cells(5, 4).Value
          MsgBox (title)
  
          WB.Save
          WB.Close
  
          ExcelApp.Quit
          Set ExcelApp = Nothing
  End Sub
  </code></pre>
  
  <p>The problem is that after MsgBoxing it slows down and eventually gives a <code>Microsoft Excel is waiting for another application to complete an OLE action</code> window. Why does it do this? It's not like there are any hard commands being implemented. And how should I deal with it?</p>