I have an Excel VBA macro that
Try Application.SendKeys "{ENTER}", True after your login code.
Also, try adding
Do: DoEvents: Loop Until Not objIE.Busy and
Do While objIE.readyState <> 4: DoEvents: Loop any time you need a page to load. In my experience, coupling the two together works pretty well, whereas using just one or the other can sometimes produce errors and using Application.Wait can slow down your code unecessarily.
In case anyone passes this way again, here is the solution provided by Tim Williams:
'Log-in
ie.Document.all.Item"ctl00_ContentPlaceHolder1_ctl00_HomePage_SWEUserName").Value= "abcde"
ie.Document.all.Item("ctl00_ContentPlaceHolder1_ctl00_HomePage_SWEPassword").Value = "12345"
Dim f As String
f = "function(SignIn){document.getElementById'ctl00_ContentPlaceHolder1_ctl00_HomePage_Agree').value = 'True';}"
ie.Document.parentWindow.execScript "window.ConfirmationPopup = " & f, "jscript"
ie.Document.getElementById("ctl00_ContentPlaceHolder1_ctl00_HomePage_SignIn").Click