<a href="?contractDate=&6578706f7274=1&currency=MYR&currPage=1&method.searchM2MTotal=Retrieve&d-448075-e=2&netType=M&contractFromDate=13%2F05%2F2016&contractToDate=13%2F05%2F2016"><span class="export excel">Excel </span></a>|
How can I copy the href in this HTML via Excel VBA?
This is my code, but it doesn't work.
Set Export = ie.Document.all("export excel")
URL = Export.href
ie.Navigate URL
This code you should walk through in debug mode ... it's more for instructional use than for production, but it will do what you want from it. I used Google as a test site.