Our training courses

Other training resources

Our training venues

Why we are different

Details for Neil J

Neil J has participated in the following threads:

Added by Neil J on 07 Oct 2018 at 07:18

I am very much enjoying your excellent video (Part 47 on scraping websites) but have encountered a problem.

I have referenced the workbook to Microsoft Internet Controls and Microsoft HTML Object Library.
I can compile the following code without a proble. It opens the web page but fails on the final line with a Runtime 13 mismatch error:

Sub GetHTMLDocument()

    Dim IE As New SHDocVw.InternetExplorer
    Dim HTMLDoc As MSHTML.HTMLDocument
    
    IE.Visible = True
    IE.navigate "wiseowl.co.uk"
    
    Do While IE.ReadyState <> READYSTATE_COMPLETE
    
    Loop
      
    Set HTMLDoc = IE.Document
    
End Sub

I can't for the life of me see how to solve this.
Your help would be much appreciated

Thanks
Neil

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 ...