Having trouble logging into a secure website

blackbox

Board Regular
Joined
Apr 2, 2006
Messages
122
Guess I'll start with my code

Code:
Function Secure_login()
   Dim ie As Object
   Set ie = CreateObject("InternetExplorer.Application")
   With ie
       .Visible = True
       .navigate "https://efills.cbot.com"
       Do Until .readystate = 4
           DoEvents
       Loop
       With .document.forms(0)
           .Item("username").Value = "xxxxxxxx"
           .Item("passcode").Value = "xxxxxxxx"           
           .Item("SUBMIT").Click
       End With
   End With
   Set ie = Nothing
End Function

it enters the username and password but won't click the logon button

here's the relevant HTML code
Code:
<td align="center" HEIGHT="38" width=100%>
		<font SIZE="2" FACE="Arial" COLOR="#000000">
<input TYPE="SUBMIT" VALUE="Logon" TITLE="Log onto eFills">
		</font>
	</td>

I've tried "SUBMIT", "Logon", and"Log onto eFills" but none of them do the trick.

any suggestions?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
figured it out

instead of
Code:
.Item("username").Value = "xxxxxxxx" 
.Item("passcode").Value = "xxxxxxxx"            
.Item("SUBMIT").Click

i used
Code:
.Item("username").Value = "xxxxxxxx" 
.Item("passcode").Value = "xxxxxxxx"            
.Submit
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,756
Members
448,990
Latest member
Buzzlightyear

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