ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   use VB to click the submit button, pse see if you can help (https://www.excelbanter.com/excel-programming/378305-use-vbulletin-click-submit-button-pse-see-if-you-can-help.html)

chrisho

use VB to click the submit button, pse see if you can help
 
I have the following bit of web site source. there is no ID and Name for the
submit button, anyone can help me to change the VB in order to click the
button.

<P<BR<P
<BBefore you can access this function, you will need to login</B
<P
<FONT FACE="Arial" SIZE="-1"<BOperator ID:</B</FONT
<INPUT TYPE="TEXT" NAME="SEC_username" Size=10 VALUE=""
<P
<FONT FACE="Arial" SIZE="-1"<BPassword:</B</FONT
<INPUT TYPE="PASSWORD" NAME="SEC_password" Size=10 VALUE=""

<P<BR<P
<INPUT TYPE="HIDDEN" NAME="scriptname" VALUE="/cgi-bin/ias.cgi"
<INPUT TYPE="HIDDEN" NAME="parameters" VALUE="scr=menu_main%2ecgi"
<INPUT TYPE="HIDDEN" NAME="SEC_usertype" VALUE="operator"

<INPUT TYPE="SUBMIT" VALUE="LOGIN"
<INPUT TYPE="RESET" VALUE="Clear"
</CENTER



Can anyone help? I just to use the following VB to send a click stroke,
anyone can help to identify what I have to do as I cannot get it work because
I cannot find the right click name or ID?


ie.document.all("SEC_username").Value = "XX"
ie.document.all("SEC_password").Value = "XXXX"
Set ipf = ie.document.all.Item("submit")<---this maybe incorrect.
ipf.Click





All times are GMT +1. The time now is 02:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com