title: How to enter Data in Internet explorer textbox using VBA excel
body: <p>I'm a complete newbie for Excel VBA, but what I'm trying to accomplish is enter a text into a text box, whose code is</p>
  
  <pre><code> &lt;input name="txt_invoiceno" type="text" maxlength="16" id="txt_invoiceno" tabindex="1" class="text-left" style="width:150px;"&gt; 
  
  </code></pre>
  
  <p>This is my VBA code</p>
  
  <pre><code>Dim Inv as Object
  Inv = ie.Documents.getelementsbyId("txt_invoiceno")
  Inv.value="mytext"
  </code></pre>
  
  <p>This just gives me an error  </p>
  
  <blockquote>
    <p>Object doesn't support this property or method.</p>
  </blockquote>
  
  <p>Am I doing anything wrong?
  Please someone give me code to enter text into the element.</p>