title: Click the button on the USPS Web Site to find 9 digit Zip Code
body: <p>USPS ZipCode Website &amp; Excel VBA -- I have all of the code working to populate the site, but I can not click the "FIND" submit button with Excel-VBA code. </p>
  
  <p>Here is the URL for the site and all of the button clicking code I have submitted</p>
  
  <pre><code>https://tools.usps.com/zip-code-lookup.htm?byaddress
  
  
  'All of the different submit Code I have tried:
  
  html.all.getElementById("zip-by-address").Click
  html.all.getelementbytagname("zip-by-address").Click
  html.document.querySelector("Find[type=submit]").Click
  
  html.document.getElementsByClassName("btn btn-primary").Click
  html.document.getElementById("zip-by-address").Click
  
  For Each Element In ie.document.getElementsByName("zip-by-address")
      If Element.className = "btn-primary" Then
          Element.Click
      End If
  Next
  
  ie.document.querySelector("button[type=submit]").Click
  
  For Each Element In ie.document.getElementsByTagName("zip-by-address")
      If InStr(Element.innerText, "Find") &gt; 0 Then Element.Click
  Next
  
  ie.document.getElementByTagName("Find").FireEvent "onclick"
  
  ie.document.getElementById("zip-by-address").FireEvent "onkeypress"
  ie.document.getElementById("zip-by-address").FireEvent "onclick"
  
  Set frm = ie.document.forms(0)
  frm.submit
  </code></pre>