Sub GoToWebSiteAndEnterPWUN()
Dim appIE As Object ' InternetExplorer.Application
Dim sURL As String
Dim UserN As Variant, PW As Variant
Dim Element As Object ' HTMLButtonElement
Dim btnInput As Object ' MSHTML.HTMLInputElement
Dim Subframe As Object
Set appIE = CreateObject("InternetExplorer.Application")
sURL = "http:myURL.asp"
With appIE
.Navigate sURL
.Visible = True
'Click Radio Button ? ? ?
' enter username and password in textboxes
Set UserN = appIE.Document.getElementsByName("&txtTheAgent=")
If Not UserN Is Nothing Then UserN(0).Value = "myValue"
Set PW = appIE.Document.getElementsByName("&txtTheInitials=")
If Not PW Is Nothing Then PW(0).Value = "My Value"
Set PW2 = appIE.Document.getElementsByName("&txtThePassword")
If Not PW2 Is Nothing Then PW2(0).Value = "My Value!"
' click 'Submit' button
Set ElementCol = appIE.Document.getElementsByTagName("btnSubmit")
For Each btnInput In ElementCol
If btnInput.Value = "Submit" Then btnInput.Click
Next
End with
End Sub