Hi,
I have the code below that I use to log in automatically into the website, how can i add input box in the code to ask me for the username and password and once i enter them to log in, thanks.
here is the code:
I have the code below that I use to log in automatically into the website, how can i add input box in the code to ask me for the username and password and once i enter them to log in, thanks.
here is the code:
Code:
Sub login()Dim IE As Object
Dim HTMLDoc As Object
Dim objCollection As Object
Const navOpenInNewTab = &H800
Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "https://secure.shawbusinesssolutions.ca/html/billing_system_login.jsp"
Do While IE.Busy Or IE.ReadyState <> 4: Loop
Set HTMLDoc = IE.Document
With HTMLDoc
HTMLDoc.getElementById[B]("username_input_occ")[/B].Value = "4555-0001"
HTMLDoc.getElementById([B]"password_input"[/B]).Value = "otherwise"
End With
Set objCollection = IE.Document.getElementById("signin_submit")
objCollection.Click
End Sub