The VBA code is not responsible because it doesn't work on IE 11 even not programmatically.
The button works with Chrome or Firefox but I cannot manage to use Selenium on my computer, it is throwing errors.
I asked the coding team of the website to tell me more precisely how this button was created on this link (Exportar todo) on this link https://bananadesk.com/transactions/incoming
Screen capture of the website:
<a class="button -tertiary" href="javascript:export_all_to_excel()">Exportar Todo</a>
If I inspect the html page, I see stuff like this:
o=null,i=null,a=/Version\/(\S+)\s+Safari/;if(navigator.userAgent){var s=navigator.userAgent,c=s.match(a);c&&s.indexOf("Chrome")===-1&&s.indexOf("Chromium")===-1&&(o="Safari",i=c[1])}n.exports={agent:o,version:i,match:r}},{}],21:[function(t,n,e){function r(t,n){Var...
Probably because their website is only supported on Chrome and Safari.
Here is the VBA code, it won't click the button Exportar todo even though I am entering the If block properly:
For Each MyHTML_Element In HTMLDoc.getElementsByClassName("button -tertiary")
Debug.Print "button found"
MyHTML_Element.Click: Exit For
Next