title: Unable to click at hyperlink on webpage with anchor tag
body: <p>After testing of different logic's, finally I stuck in <em>Visual Basic for Applications</em> to find out the right way to trigger the below attribute:</p>
  <p><a href="https://i.stack.imgur.com/5CK6j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5CK6j.png" alt="enter image description here" /></a>
  I want to click on hyperlink which does not remain same, it shows different numbers with hyperlink on every next attempt and below is my VBA code:</p>
  <pre><code>Dim MyBrowser As InternetExplore
  Dim MyHTML_Element As IHTMLElement
  Dim myURL As String
  
  Dim htmlInput As HTMLInputElement
  Dim htmlColl As IHTMLElementCollection
  Dim p As String
  Dim link As Object
  Dim I As Integer
  Dim ie As SHDocVw.InternetExplorer
  Dim doc As MSHTML.HTMLDocument
  
  myURL = &quot;url.............&quot;
  Set MyBrowser = New InternetExplorer
  MyBrowser.Silent = True
  MyBrowser.navigate myURL
  MyBrowser.Visible = True
  Do
  Loop Until MyBrowser.readyState = READYSTATE_COMPLETE
  Set HTMLDoc = MyBrowser.Document
  
  If htmldoc.all.item(i).innerText = Range(&quot;K20&quot;).Value Then  ' Range is equal to cell value &quot;4000123486736&quot;
     htmldoc.all.item(i).Click            &lt;------- not woking both lines
  </code></pre>
  <p>Please also see inspects on IE appended below:</p>
  <p><a href="https://i.stack.imgur.com/qXzDz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qXzDz.jpg" alt="enter image description here" /></a></p>