Hi,
First post here. Fairly new to VBA, I have a problem which I've searched this and other forums for an answer but none have quite got me to where I want to be. This goes beyond my trusty Mr Excel book...
The question.
How can I get my username and password into the form at the top of this web page - http://glenigan-cms.auros.co.uk/default.aspx and then submit.
The code that I've found enters my details but only in grey font. I belive this is because I have the wrong HTML id/name? I know even less about HTML than I do VBA!!
Should I be navigating to the form when I navigate to the page initially?
If I try to submit the form(0), it submits the search box?
I've tried changing the form number to 1,2,3,4 but this returns an error.
I would be most grateful for a point in the right direction.
thank you,
Rob
this is the thread which has helped me thus far - http://www.mrexcel.com/forum/showthread.php?t=461524
Norie are you out there.....
First post here. Fairly new to VBA, I have a problem which I've searched this and other forums for an answer but none have quite got me to where I want to be. This goes beyond my trusty Mr Excel book...
The question.
How can I get my username and password into the form at the top of this web page - http://glenigan-cms.auros.co.uk/default.aspx and then submit.
The code that I've found enters my details but only in grey font. I belive this is because I have the wrong HTML id/name? I know even less about HTML than I do VBA!!
Should I be navigating to the form when I navigate to the page initially?
If I try to submit the form(0), it submits the search box?
I've tried changing the form number to 1,2,3,4 but this returns an error.
Code:
Sub Test()
Set IE = CreateObject("InternetExplorer.application")
IE.Visible = True
IE.navigate ("[URL]http://glenigan-cms.auros.co.uk/default.aspx[/URL]")
Do
If IE.readyState = 4 Then
Exit Do
Else
DoEvents
End If
Loop
IE.document.forms(0).all("[COLOR=black]Template_GLE_Login_LoginView1_login_UserName").[/COLOR]Value = "theusername"
IE.document.forms(0).all("Template_GLE_Login_LoginView1_login_Password").Value ="thepassword"
IE.document.forms(0).submit
End Sub
I would be most grateful for a point in the right direction.
thank you,
Rob
this is the thread which has helped me thus far - http://www.mrexcel.com/forum/showthread.php?t=461524
Norie are you out there.....
Last edited: