Hello Everyone
I have been scouring the web and can't find a solution that works. Here is the website that I am accessing:
RT & TMS Outrigger Pad Load Calculator
I want to click the "Accept" button. My code successfully opens IE and navigates to the page but then fails to click the button. Here is all of my code:
Here is the website code for the "Accept" button:
input type="submit" name="ctl00$placeHolderMain$btnAccept" value="Accept" id="ctl00_placeHolderMain_btnAccept"
Thanks!
Ben
]
I have been scouring the web and can't find a solution that works. Here is the website that I am accessing:
RT & TMS Outrigger Pad Load Calculator
I want to click the "Accept" button. My code successfully opens IE and navigates to the page but then fails to click the button. Here is all of my code:
Code:
Sub IE()
Set objIE = CreateObject("internetexplorer.application")
'set all of the properties for the Internet Explorer Window.
objIE.Top = 0
objIE.Left = 0
objIE.Width = 1600
objIE.Height = 1000
objIE.addressbar = 0
objIE.StatusBar = 0
objIE.Toolbar = 0
objIE.Visible = True
'Navigate to the website.
objIE.navigate ("http://www.manitowoccranes.com/en/Resources/tools/Outrigger-Pad-Load-Calculators/RT-TMS")
Do
DoEvents
Loop Until objIE.readystate = 4
'everything works until this point:
objIE.document.GetElementByID("ctl00_placeHolderMain_btnAccept").Click
Do
DoEvents
Loop Until objIE.readystate = 4
MsgBox "Complete!"
End Sub
Here is the website code for the "Accept" button:
input type="submit" name="ctl00$placeHolderMain$btnAccept" value="Accept" id="ctl00_placeHolderMain_btnAccept"
Thanks!
Ben
]
Last edited: