VBA code to execute Java-script on webpage
Hi
I am stuck in automation of a website by VBA. It has Javascript under a dropdown menu(Download). I wrote down VBA code but neither it gives any error nor it executes the Java script. Here is HTML code
and VBA code
For Each MyHTML_Element In IE.document.getElementsByTagName("a")
If MyHTML_Element.innerText = "Download" Then MyHTML_Element.Click: Exit For
Next
Appreciate of your time and suggestions in this regards.
Thanks
Sumi
»
- sumifm's blog
- Login or register to post comments
- 6038 reads
Recent comments
5 years 34 weeks ago
6 years 20 weeks ago
6 years 32 weeks ago
6 years 35 weeks ago
6 years 36 weeks ago
6 years 42 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago