title: Why my google search macro is returning error 424 - Object required?
body: <p>I have this simple macro that opens up IE and type a word in search box. It was working before, but now is returning</p>
  
  <blockquote>
    <p>Error 424 - Object required. </p>
  </blockquote>
  
  <p>Any ideas on what is happening? Is there any lib reference that I'm missing?</p>
  
  <pre><code>Sub AcessaPaginaDados()
      Dim xobj As HTMLDivElement
      Dim ie As Object
  
      Set ie = CreateObject("InternetExplorer.Application")
      ie.Visible = True
      ie.Navigate ("https://www.google.com/")
  
      Do While ie.Busy Or ie.readyState &lt;&gt; 4
          DoEvents
      Loop
  
      Set xobj = ie.document.getElementById("lst-ib")
      Call xobj.setAttribute("value", "teste")        
  End Sub
  </code></pre>