title: Can't click a web page button via VBA
body: <p>I'm automation a login to a web page and then exporting data by clicking in a exporting button in the web page.</p>
  
  <p>The problem is that when I call the button:</p>
  
  <p><code>ie.document.getelementsbytagname("DTTT btn-group").click</code> </p>
  
  <p>I get an error message telling that the method don't apply to the object.</p>
  
  <p>The web code when I select the button is:</p>
  
  <pre><code>    &lt;div class="DTTT btn-group"&gt;
      &lt;a class="btn xls_icon_class downLoadIcon_dataTable"
  
  id="ToolTables_documentos_0" data-original-title=""&gt;
      &lt;span&gt;&lt;/span&gt;
      &lt;div style="left: 0px; top: 0px; width: 16px; height: 16px; position: 
  
  absolute; z-index: 99;"&gt;
      &lt;embed name="ZeroClipboard_TableToolsMovie_1" width="16" height="16" 
  
  align="middle" id="ZeroClipboard_TableToolsMovie_1" pluginspage="http://www.macromedia.com/go/getflashplayer" 
  
  src="/factemipf_static/swf/copy_csv_xls_pdf.swf" type="application/x-
  
  shockwave-flash" wmode="transparent" flashvars="id=1&amp;amp;width=16&amp;
  
  amp;height=16" allowfullscreen="false" allowscriptaccess="always" 
  
  bgcolor="#ffffff" quality="best" menu="false" loop="false"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/div&gt;"
  </code></pre>
  
  <p>Help will be appreciated.</p>