title: Why the code doesn't click in the button?
body: <p>I'm trying to open a IE window and click in the button to automate a repetitive work. The code opens the window but don't click in the button, any help?</p>
  
  <p>The button have this code:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;a tabindex="0" title="Criar Solicitação de Manutenção" 
    class="urLnkReportGl20 urTxtEmph" id="WD54" 
    style="WHITE-SPACE: nowrap" 
    ondragstart="var e=window.event;e.cancelBubble=true;e.returnValue=false;return false;"
     href="javascript:void(0);" shape="" ti="0" 
    lsevents="{Activate:[{ResponseData:'delta',ClientAction:'submit'},{}]}" 
    lsdata="{0:'Criar\x20Solicita\xe7\xe3o\x20de\x20Manuten\xe7\xe3o',1:'CRIAR\x20SOLICITA\xc7\xc3O\x20DE\x20MANUTEN\xc7\xc3O',4:true}" 
    ct="LN"
  &lt;img align="absMiddle" ondrag="return false" 
     alt="Criar Solicitação de Manutenção" src="http://dest-pb0l03.sap.global.*****:8000/sap/public/bc/WebIcons/ur/default/l/Pictogram/Caliper.gif" border="0"&lt;/img&gt; CRIAR SOLICITAÇÃO DE MANUTENÇÃO
  &lt;/a&gt;
  </code></pre>
  
  <p>The code I'm using is this:</p>
  
  <pre class="lang-vb prettyprint-override"><code>Sub VbaInternet()
  
  Set Internet = New InternetExplorer
  Internet.navigate "http://dest-pb0l03.sap.global.*****:8000/sap/bc/webdynpro/sap/zpm_portal?sap-language=PT"
  Internet.Visible = True
  
  While Internet.Busy
      Do While Internet.readyState = 4: DoEvents: Loop   'Do While
      Do Until Internet.readyState = 4: DoEvents: Loop   'Do Until
  Wend
  
  Dim oElement As Object 'Objeto referente a um Elemento
  Dim oElementCol As Object 'Coleção de um tipo de Elemento
  
  
  Set oElementCol = Internet.document.getElementsByTagName("a")
  
  
    'Ao encontrar, é simulado o Click e força a saída do laço.
    If oElement.className Like "urLnkReportGl20 urTxtEmph" Then
  
    oElement.Click
  
  End If
    Next oElement
  End Sub
  </code></pre>
  
  <p>i expect i can click in this button</p>