I am trying to select a button in Internet Explorer via VBA but it is not working. HTML and the VBA codes are below for your reference. Your help is much appreciated.
HTML:
VBA Code
For Each HTMLElement In HTMLDoc.getElementsByClassName("button button-secondary")
If HTMLElement.Title Like "Go" Then
HTMLElement.Click
Exit For
End If
Next HTMLElement
HTML:
HTML:
Go
VBA Code
For Each HTMLElement In HTMLDoc.getElementsByClassName("button button-secondary")
If HTMLElement.Title Like "Go" Then
HTMLElement.Click
Exit For
End If
Next HTMLElement