Here's an example that loops through each link, checks for the text "Cash Flow", and then clicks the link...
Dim HTMLLink As MSHTML.HTMLAnchorElement
For Each HTMLLink In HTMLDoc.getElementsByTagName("a")
If HTMLLink.innerText = "Cash Flow" Then
HTMLLink.Click
Exit For
End If
Next HTMLLink
But this simply brings you to the table located at the bottom of the same page. If you want to access the information in that table, you can loop through each table on the page, and check for the text "Cash from Operating Activity" from the second row...
Dim HTMLTable As MSHTML.HTMLTable
For Each HTMLTable In HTMLDoc.getElementsByTagName("table")
If HTMLTable.getElementsByTagName("tr")(1).Cells(0).innerText = "Cash from Operating Activity" Then
'Do stuff
Exit For
End If
Next HTMLTable
Actually, instead of accessing the information from within this loop, you can exit it first, and then do so...
Dim HTMLTable As MSHTML.HTMLTable
For Each HTMLTable In HTMLDoc.getElementsByTagName("table")
If HTMLTable.getElementsByTagName("tr")(1).Cells(0).innerText = "Cash from Operating Activity" Then
Exit For
End If
Next HTMLTable
If Not HTMLTable Is Nothing Then
'Do stuff
Else
MsgBox "The Cash Flow table wasn't found.", vbInformation
End If
Display More
Hope this helps!