Using VBA and Internet Explorer to Parse HTML
<p>I am trying to use VBA code to click a "Go" button on a website. This is the source code.</p>

<pre><code> &lt;div class="actions"&gt; 
  &lt;a id="go" href="javascript:void(null);" title="Go"&gt;&lt;img src="/images/button-go-smaller.png"&gt;&lt;/a&gt;
   &lt;a id="reset" href="javascript:void(null);" title="Reset All Fields"&gt;&lt;img src="/images/button-reset_all.png"&gt;&lt;/a&gt;
                    &lt;/div&gt;
</code></pre>

<p>This is my VBA code:</p>

<pre><code>For Each obj In objCollection
     If objCollection(i).ID = "go" Then
        Set objElement = obj
Exit For
    End If
Next obj
objElement.Click
</code></pre>

<p>However, on the  objElement.Click line, I get an error 91, which means that the "go" action cannot be found. Why is that, and how can I access the go button?</p>