title: Click <span>? element or button without name or get submit to work
body: <p>I've been poking around the internet at large cobbling together some VBA code to try to interact with some web pages (and eventually scrape).</p>
  
  <p>I have some decent knowledge of VB and programming, but the internet end of things is pretty new to me, especially the syntax of commands, so I'm leveraging things from the internet.</p>
  
  <p>I have one that's working,</p>
  
  <p><a href="http://snowload.atcouncil.org/" rel="nofollow noreferrer">http://snowload.atcouncil.org/</a></p>
  
  <p>This I can fill in and get to submit with a </p>
  
  <pre><code>doc.getelementsbyId("coordinate_address").value = range("City").value _ 
  &amp; ", " &amp; range("State").value 
  doc.getelementsbyId("btn-submit").click
  </code></pre>
  
  <p>then wait it out until readystate =4 , etc.</p>
  
  <p>The one I can't get to work is here.</p>
  
  <p><a href="http://windspeed.atcouncil.org/" rel="nofollow noreferrer">http://windspeed.atcouncil.org/</a></p>
  
  <p>This one seems to use a  object that I can't figure out how to click. It doesn't seem to have a name, and Id, etc.</p>
  
  <p>If I use conventional 'submit' on the windspeed page, (loosely using that term), the page loads, but it comes out blank. Like I'm not using the syntax correctly, or not passing a variable/searchform somehow.</p>
  
  <pre><code>ie.document.all.item("submit").click
  </code></pre>
  
  <p>This 'works' but it produces a blank page with the east coast of africa and no data.</p>
  
  <p>In the immediate/console of the browser, after I click, say, the Hawaii button, it works with document.searchform.submit()</p>
  
  <p>If I try that in code, it doesn't work. (The Immediate window in the VBA editor thows me a "expected: =" error,</p>
  
  <p>The object I am trying to click is in the web site code.....</p>
  
  <pre><code>&lt;span&gt;
   &lt;input type="submit" value="Get Windspeed" onclick="valbutton(searchform); return false;"&gt;
  &lt;span&gt;
  </code></pre>
  
  <p>I've tried a lot of techniques poached from the internet, but no success yet. (looping over elements using getelementsbyclassname "span", but it either doesn't find the one with value ="Get Windspeed", or it doesn't find it at all.</p>
  
  <p>somehow triggering the valbutton (that's a subroutine/function on the page) seems like a workaround... but VBA seems to want different syntax than the console on the web page and it's doing the same kind of "expected: =" syntax error when I try that approach. </p>
  
  <p>I suspect normal submit would work, but I'm somehow not passing the filled out page and am sending a blank to the submit/get?</p>
  
  <p>I also notice that if you are on the page, type in an address, and hit enter, it runs that "find" button I can't figure out (same thing, no name or ID obvious, it's a button....), and if you hit enter after it reloads, then it somehow by default hits that 'get windspeed' button, which suggests to me they are both submit buttons in a way.</p>
  
  <p>Thanks for reading, I appreciate any thoughts on the matter. I am trying to get this to get all the data input and get the results without adding anything beyond VBA (i.e. jscript or vbscript or other things,)</p>
  
  <p>-Brian</p>