Sub login()
Dim loginID As String
Dim loginPW As String
loginID = "ID"
loginPW = "Passwd"
Dim IE As InternetExplorer
Dim doc As HTMLDocument
Dim element As IHTMLElementCollection
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate ("http://www.emome.net/channel?chid=48")
IE.Visible = True
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
Loop
Set doc = IE.document
Set element = doc.getElementsByName("uid")
element.Item(0).Value = loginID
Set element = doc.getElementsByName("pw")
element.Item(0).Value = loginPW
IE.navigate ("javascript:goRegist()")