All, I am controlling an IE website programmed in .NET and I am having an issue with a IE confirmation pop up box that has to be answered before my VBA code will continue. You will not be able to access this web page because it in internal to my company.
Wesite Site code line I am having issues with:
HTML Code:
<input type="button" name="ctl00$ContentPlaceHolder1$btnAction" value="Update" onclick="if (!confirm('Are you sure you wish to take this action?')) return false;__doPostBack('ctl00$ContentPlaceHolder1$btnAction','')" id="ctl00_ContentPlaceHolder1_btnAction" />
</div>
I can control the input button fine with:
[VBA]
IeApp.Document.all.item("ctl00_ContentPlaceHolder1_btnAction").Click
[/VBA]
The issue is I get a popup box because of the below code which I have to manually click before VBA will continue:
HTML Code:
onclick="if (!confirm('Are you sure you wish to take this action?')) return false;__doPostBack('ctl00$ContentPlaceHolder1$btnAction','')" id="ctl00_ContentPlaceHolder1_btnAction" />
Is there a way in one statement to click the button and update the onclick IE confirmation popup box that appears?
Is there a way to work around this IE confirmation pop up box?