- Jan 15, 2001
- 15,069
- 94
- 91
I need to login to my bank account to grab some data for a spreadsheet. I have been struggling to submit the forms though and it is basically blocking all progress. I'll post what I have so far but I'm hoping someone can show me what is wrong...
The website in question is here.
The following macro will open the page, populate the username and password inputboxes, and try to submit the form but it doesn't work.
It gives a 404 error while trying to go to the following page:
I believe it is expecting the form submission as an encoded POST data packet, but I can't figure out how to submit it like that. The other problem is that I know next to nothing about HTML, so I don't even know what to submit. I've been researching this for several days and I know I need to send all of the form "members" in the POST data packet, but I have no idea what I'm looking at when I open the page source.
I am having this exact same problem on Bank of America's website so I am pretty sure the POST data thing is the problem.
One other thing that struck me as odd but I have no idea why - if I run the same macro posted above, except browse to the page you are directed to if you enter your password incorrectly, the form submission will work and I can login to my account. It doesn't really help me though as that same trick doesn't work on all of my other bank websites so I still need to figure out the real solution.
The website in question is here.
The following macro will open the page, populate the username and password inputboxes, and try to submit the form but it doesn't work.
Code:
Sub Chase_Login()
Dim vIE As Object
Dim cTables As Variant
Set vIE = CreateObject("InternetExplorer.Application")
With vIE
.Visible = True
.Navigate "https://www.chase.com/"
Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
.Document.forms("logonform").usr_name.Value = "test1234"
.Document.forms("logonform").usr_password.Value = "test1234"
.Document.All.Item("logonform").submit
Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
End With
End Sub
It gives a 404 error while trying to go to the following page:
I believe it is expecting the form submission as an encoded POST data packet, but I can't figure out how to submit it like that. The other problem is that I know next to nothing about HTML, so I don't even know what to submit. I've been researching this for several days and I know I need to send all of the form "members" in the POST data packet, but I have no idea what I'm looking at when I open the page source.
I am having this exact same problem on Bank of America's website so I am pretty sure the POST data thing is the problem.
One other thing that struck me as odd but I have no idea why - if I run the same macro posted above, except browse to the page you are directed to if you enter your password incorrectly, the form submission will work and I can login to my account. It doesn't really help me though as that same trick doesn't work on all of my other bank websites so I still need to figure out the real solution.
