Hi folks,
Ive been stuck on this problem for over 4 hours now and can't seem to make it work.
I'm trying to get IE to click on the button called "output to excel" found on this website: http://whalewisdom.com/stock/WFMI
Normally I could just take the url of the button and use a webquery but it doesn't work with this website. The code I have so far is this:
the html code for the button on the website is this:
does anyone know what exactly is wrong, i always get the yellow debug error when excuting at the last line, the get elementid one. i also tried variations like get elementbytag, name etc. Ive searched for hours but apparently it looks like its pretty rare to get the button identified by just input value="whatever". Normalyl id is used. Any help would really be immensely appreciated.
Ive been stuck on this problem for over 4 hours now and can't seem to make it work.
I'm trying to get IE to click on the button called "output to excel" found on this website: http://whalewisdom.com/stock/WFMI
Normally I could just take the url of the button and use a webquery but it doesn't work with this website. The code I have so far is this:
Code:
Dim ieapp As Object
Public Sub test()
Dim ieapp As Object
Set ieapp = CreateObject("internetexplorer.application")
With ieapp
.Visible = True
.Navigate "http://whalewisdom.com/stock/WFMI"
Do While .READYSTATE <> 4: DoEvents: Loop
Application.Wait (Now + TimeValue("0:00:02"))
'Assuming there is only one element on the page named "Start"
Document.GetElementById("Output To Excel").Click
End With
End Sub
Code:
< input value="Output to Excel" on click="Stock.export_to_excel();" type="button"