musicgold
11-07-2009, 10:56 PM
Hi,
Please see the attached source code for a button on a website. I need to click the button using VBA.
As there is no unique id or name to the button, I am not able to access the button using the typical getelementbyid or getelementsbyname. Also there are more than one button with the class “header_button”
How can I access the button?
INPUT class="header_button" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; BACKGROUND-IMAGE: url(images/header_button.gif); COLOR: navy; BACKGROUND-COLOR: #ffbb00" on click="printWithoutAnswer()" type="button" value="Without Answer" >
Please see the attached source code for a button on a website. I need to click the button using VBA.
As there is no unique id or name to the button, I am not able to access the button using the typical getelementbyid or getelementsbyname. Also there are more than one button with the class “header_button”
How can I access the button?
INPUT class="header_button" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; BACKGROUND-IMAGE: url(images/header_button.gif); COLOR: navy; BACKGROUND-COLOR: #ffbb00" on click="printWithoutAnswer()" type="button" value="Without Answer" >