I found the following script on Google to login to hotmail and it works perfectly.
The only thing is, I would like to open Hotmail in a new tab NOT in a new window, can anyone help with this.
The only thing is, I would like to open Hotmail in a new tab NOT in a new window, can anyone help with this.
Code:
Sub IE_Login_Hotmail()
Dim objIE As InternetExplorer
Set objIE = New InternetExplorer
objIE.Navigate "[URL="http://www.hotmail.com/"]http://www.hotmail.com"[/URL]
objIE.Visible = True
'Loop unitl ie page is fully loaded
Do Until objIE.ReadyState = READYSTATE_COMPLETE
Loop
On Error Resume Next
objIE.Document.getElementById("i0116").Value = "abc@hotmail.com" 'username
objIE.Document.getElementById("i0118").Value = "abc" 'password
objIE.Document.getElementById("idSIButton9").Click
Set objIE = Nothing
End Sub