title: Late binding an Object in VBA
body: <p>I am getting the "run-time error 429" in my attempt at late binding to the VBProject object:</p>
  
  <pre><code>Dim vbProj As Object
  Set vbProj = CreateObject("ActiveDocument.VBProject")
  </code></pre>
  
  <p>Is there something fundamental I am failing to understand? </p>
  
  <p>For example, how would you write the code in <a href="http://support.microsoft.com/kb/308340" rel="nofollow noreferrer">article 308340</a> to use late binding?:</p>
  
  <pre><code> Sub CheckReference()
  
          Dim vbProj As VBProject  
          Set vbProj = ActiveDocument.VBProject
  
          For Each chkRef In vbProj.References
  
            If chkRef.IsBroken Then
               Debug.Print chkRef.Name
            End If
  
          Next
  
      End Sub
  </code></pre>