title: Pass value to textbox in website using Excel VBA
body: <p>I am trying to navigate a website and perform activities based on input from Excel.</p>
  
  <p>I am stuck in passing values to input element which auto populates value in next text box based on value we have passed (eg: if I pass a zip code in target box then city name is auto populated in next box). I can pass values but it is not triggering the JS which auto populates value.</p>
  
  <p>Target box code in webpage</p>
  
  <pre><code>&lt;input name="zipcode" class="inputBoxRequired" id="zipcode"     onkeypress="return isNumberKey(event)" onblur="getZipCity(this.value,'/ProviderPortal')" type="text" size="46" maxlength="5"&gt;
  </code></pre>
  
  <p>Code tried</p>
  
  <pre><code>Set Zip = ie_Doc.getElementById("zipcode")
   Zip.Value = Zip_Code 'Here value gets updated but associated js is not triggered
   ie_Doc.getElementById("zipcode").Focus
  </code></pre>
  
  <p>even tried fire event </p>
  
  <pre><code>Zip.FireEvent ("onchange")
  </code></pre>
  
  <p>In webpage it is mentioned as Onkeypress event. I googled to find solution but I can't get exact one.</p>