title: VBA CreateObject("MSXML2.DOMDocument60") throws an Error 429
body: <p>I'm having trouble declaring new object using <code>CreateObject()</code></p>
  
  <pre><code>Sub A()
      Dim x
  
      'This works
      Set x = CreateObject("Scripting.FileSystemObject")
      Set x = Nothing
  
      'This throws an error 429 "Active component cannot create object."
      Set x = CreateObject("MSXML2.DOMDocument60")
      Set x = Nothing
  
      'The only way I can create object is to add the reference using GUID
      Dim y As MSXML2.DOMDocument60
      Set y = New MSXML2.DOMDocument60
      Set y = Nothing
      'This works like a charm
  
  End Sub
  </code></pre>
  
  <p>I don't understand why "scripting" works and "MSXML2" does not.</p>
  
  <p>I'm using MS Access 2010 32 bit on Windows 7 64 bit.</p>