using Visual Basic for Applications to Click Button in Table
<p>I am attempting to click a button that is present in a table.</p>

<pre><code>&lt;td class="b item enabled hasIcon" id="flowTile_2" 
   onmouseover="javascrpt:startHoverTimer(this);"
   onmouseout="javascript:startTimerToMaybeEndHoverMode(this);"
   onclick="javascript:runE1App('P4101','W4101E','DMS0001')" appId="P4101"
   formId="W4101E" version="DMS0001" tileText="Part Master" haveBox="true"&gt;
</code></pre>

<p>I've tried the following attempt:</p>

<p>I declare my variables properly as other clicking operations work properly elsewhere on the page.</p>

<pre><code>            Set htmlDoc = .document
            Do While htmlDoc.readyState &lt;&gt; "complete": DoEvents: Loop
            Set htmlColl = htmlDoc.GetElementbyId("flowTile_2")

                For Each htmlInput In htmlColl
                    Counter = Counter + 1
                        htmlInput.Click



                Next htmlInput
                MsgBox Counter
</code></pre>

<p>But I seem to get an object required error.</p>