I am able to login into facebook or gmail using the following script. But while using the same script to login into my company's network, i am unable to do so. Can anyone tell me what changes in username or password parameter or the form name should i change for the same?
On Error Resume Next
Const PAGE_LOADED = 4
Set objIE = CreateObject("InternetExplorer.Application")
Call objIE.Navigate("https://www.facebook.com")
objIE.Visible = True
Do Until objIE.ReadyState = PAGE_LOADED : Call WScript.Sleep(100) : Loop
objIE.Document.all.email.Value = ""
objIE.Document.all.pass.Value = ""
If Err.Number <> 0 Then
msgbox "Error: " & err.Description
End If
Call objIE.Document.all.login_form.Submit()
Set objIE = Nothing