Click Submit Button if there are more than two submit buttons with VBA in Internet Explorer

vimal01234

New Member
Joined
Oct 8, 2014
Messages
6
I am using the VBA application to access the website there are three submit buttons out of which I need to to Click only one
I have figured out how to put my details into the webpage, but I can not figure out how to click on the Submit button. Can anyone help out with this?

codes are here

<FORM onsubmit="return valid2()" method=post name=form2 action=endcall.asp>
<CENTER>

PRODUCTION
Process : CT SOP
Batch #
:
<INPUT style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #ffffff; FONT-FAMILY: Verdana; COLOR: #808080; FONT-SIZE: 10px; BORDER-TOP: #808080 1px solid; FONT-WEIGHT: bold; BORDER-RIGHT: #808080 1px solid" size=25 type=text name=mbatch2>


Registered Agent :
<INPUT value="CT Corp" CHECKED type=radio name=chkRegisteredUser> CT Corp <INPUT value=NRAI type=radio name=chkRegisteredUser> NRAI

<INPUT value=51507816 type=hidden name=username2> <INPUT value=ctsop type=hidden name=mprocessid2>
<INPUT value="CT SOP" type=hidden name=mprocessname2> <INPUT value="P. M. Vimalasen" type=hidden name=mname2>
<INPUT value="5/17/2010 8:00:00 AM" type=hidden name=mshiftstart2> <INPUT value="5/17/2010 9:00:00 PM" type=hidden name=mshiftend2>
<INPUT value=1 type=hidden name=mshiftnumber2> <INPUT value=51507816 type=hidden name=memployeeid2>
<INPUT value=advisor type=hidden name=massociatetype2> <INPUT value=10/8/2014 type=hidden name=mstartdate2>
<INPUT value="9:54:42 PM" type=hidden name=mstarttime2> <INPUT value="10/8/2014 9:54:42 PM" type=hidden name=mstartnow>
<INPUT style="BORDER-BOTTOM: #808080 1px solid; BORDER-LEFT: #808080 1px solid; BACKGROUND-COLOR: #3770a8; FONT-FAMILY: Verdana; COLOR: #ffffff; FONT-SIZE: 10px; BORDER-TOP: #808080 1px solid; FONT-WEIGHT: bold; BORDER-RIGHT: #808080 1px solid" value=Submit type=submit name=Submit>


<TBODY>


</TBODY>


</CENTER></FORM>
 

Some videos you may like

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Watch MrExcel Video

Forum statistics

Threads
1,108,956
Messages
5,525,884
Members
409,669
Latest member
JDCupps

This Week's Hot Topics

Top