Our training courses

Other training resources

Our training venues

Why we are different

Details for Mono

Mono has participated in the following threads:

Added by Mono on 25 Mar 2020 at 16:16

Sub myrecon()

Dim myhtml_element As IHTMLElement
Dim myurl As String

On Error GoTo err_clear

myurl = " https://webpage"

Set mybrowser = New InternetExplorer

mybrowser.Silent = True
mybrowser.navigate myurl
mybrowser.Visible = True

Do While mybrowser.readyState <> READYSTATE_COMPLETE Or mybrowser.Busy

Set htmldoc = mybrowser.document
htmldoc.all.username.Value = "name"
htmldoc.all.password.Value = "pass"

For Each myhtml_element In htmldoc.getElementsByTagName("button")
If myhtml_element.Type = "submit" And myhtml_element.class = "button" Then myhtml_element.Click:
Exit For
Next

Do While mybrowser.readyState <> READYSTATE_COMPLETE Or mybrowser.Bus
For Each myhtml_element In htmldoc.getElementsByTagscr("/arm/skins/images/structure/matte/card//square/reconciliations.png")
If myhtml_element.Title = "Reconciliations" And myhtml_element.alt = "Reconciliations" Then myhtml_element.Click:
Exit For
Next

err_clear:

If Err <> 0 Then
Err.Clear
Resume Next
End If

Hello,

Thank you so much for sharing all the information, I created a macro to navigate trough a websit but the 2nd loop is not working, would you please help me?

Thanks again.

Head office

Kingsmoor House

Railway Street

GLOSSOP

SK13 2AA

London

Landmark Offices

99 Bishopsgate

LONDON

EC2M 3XD

Manchester

Holiday Inn

25 Aytoun Street

MANCHESTER

M1 3AE

© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.

End of small page here
Please be aware that our website uses cookies!
I'm OK with this Tell me more ...