title: VBA Excel GetObject Issue - Run Time Error 91 - Object Variable or With block Variable not Set
body: <p>I am getting an error:</p>
  
  <blockquote>
    <p>"Run-Time error 91: Object Variable or With block variable not set" . </p>
  </blockquote>
  
  <p>Debugging highlights the line with <code>MsgBox()</code>:</p>
  
  <pre><code>Sub CATMain()
  
      Dim xlApp As Excel.Application    
      Set xlApp = VBA.GetObject("", "Excel.Application")    
      Dim exlBook As Excel.Workbook
      Set exlBook = xlApp.ActiveWorkbook    
      MsgBox exlBook.Name
  
  End Sub
  </code></pre>
  
  <p>What could be wrong?</p>