Jishnu Surendran
New Member
- Joined
- Jul 29, 2013
- Messages
- 32
I've a button on a web page that I am trying to click using vba. The button exports the table to excel; it does not have any text but only the excel logo. Below is the html of the button retrieved using the 'inspect element' property of the web page.
< a class="x1" tab index="0" aria-controls="print_all">...</a> (event)
.... is the span
(event) is the event of the button
x1 is just an indicative text
I've tried .getelementsbyclassname("x1").click but nothing is happening, the button doesn't have an ID either. There is another button to the left which is clicked for printing out the table.
I've opened the webpage, logged in a retrieved the table; buttons where clicked wherever necessary all using vba except this which is bugging me for sometime now.
Is there a way to click this button using vba?
< a class="x1" tab index="0" aria-controls="print_all">...</a> (event)
.... is the span
(event) is the event of the button
x1 is just an indicative text
I've tried .getelementsbyclassname("x1").click but nothing is happening, the button doesn't have an ID either. There is another button to the left which is clicked for printing out the table.
I've opened the webpage, logged in a retrieved the table; buttons where clicked wherever necessary all using vba except this which is bugging me for sometime now.
Is there a way to click this button using vba?