Sub login()
Const Url$ = "https://commercial.metrobankonline.co.uk/portalserver/business-login"
Dim UserName As String, Password As String, Scode As String, LoginData As Worksheet
'Set LoginData = ThisWorkb ook.Worksheets("Sheet1")
UserName = "123456789"
Password = "pwd"
Dim ie As Object
Set ie = CreateObject("InternetExplorer.Application")
Dim Btn As Object
With ie
.navigate Url
ieBusy ie
.Visible = True
Dim oLogin As Object, oPassword As Object
Dim ele As Object
Set oLogin = .document.getElementsByName("customerNo")(0)
oLogin.Value = UserName
End With
For Each ele In ie.document.getelementsbytagname("a")
If InStr(ele.innertext, "Continue") > 0 Then ele.Click
Next
ie.Quit
End Sub
I am struggling to move to the next step of sign-in process by clicking the "Continue" button. below codes naviges to the web page sucessufly and puts the user name but fails to click the button.