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>
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,214,991
Messages
6,122,628
Members
449,095
Latest member
bsb1122

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top