runawaybride
New Member
- Joined
- Sep 9, 2016
- Messages
- 1
Hi guys
So far, I have managed to open IE and click the dropdown menu. But I am having a hard time selecting any of the options in the drop down list.
Can anyone help? Please find the code below. Rgds
So far, I have managed to open IE and click the dropdown menu. But I am having a hard time selecting any of the options in the drop down list.
Can anyone help? Please find the code below. Rgds
Code:
Sub OpenWebSelectClickSaveHtmlFile()Dim URL As String
URL = "http://formulaacademia.com.br/academia"
Set myIE = CreateObject("InternetExplorer.Application")
With myIE
.navigate URL
.Visible = True
Do While .Busy = True Or .readyState <> 4
Loop
DoEvents
Set selectitems = myIE.document.getElementsByTagName("button")
For Each i In selectitems
i.Click
Next i
End With
End Sub