title: ActiveX component can't create object Excel.Application
body: <p>My code, running in MS Access 2010:</p>
  
  <pre><code>Sub test()
      Dim xl as Object
      set xl = CreateObject("Excel.Application")
  End Sub
  </code></pre>
  
  <p>For whatever reason I am getting the error </p>
  
  <blockquote>
    <p>ActiveX component can't create object. </p>
  </blockquote>
  
  <p>I don't know why -- I go to Tools -> References and I even add the Microsoft Excel library, but still nothing. </p>