I have a problem to click on button on an internet website, I cannot display the full VBA code because it is about a sensitive website used on a professional environment.
What I would like that my excel macro does is to display the website desired (this part, my macro does it perfectly) , then I would like that my macro click on one specific button on this website, after inspecting the HTML code of this button, it returns me the following HTML code:
<div title="Export Datas" class="pExportdatas pButton"><span></span></div>
I have tried different instructions in VBA (please find them below) to click on this button but every time unsuccessfully (the macro does not perform this Action, the macro does not return me any error message but the button is unfortunately every time not clicked).
HTMLDoc.all("pExportdatas pButton").Click
objIE.document.getElementById("pExportdatas pButton").Click
objIE.document.querySelector("button[class*= pExportdatas pButton]").Click
In case, someone knows the solution, it would be really super. Many Thanks in advance Xavi