0

I am new to using VBA inside of Excel. I want to query some data to populate in on my excel worksheet (table).
However, in many tutorials (code sample) I have found online, I am missing so library/dependency. Here is a code sample where I have Can't find project or library for Dim req As New MSXML2.XMLHTTP60 error when I run it.

Sub BasicGETRequest()

    Dim req As New MSXML2.XMLHTTP60
    Dim reqURL As String
    
    reqURL = "https://www.wiseowl.co.uk/vba-macros/videos/vba-scrape-websites/"
    
    req.Open "GET", reqURL, False
    
    req.Send
    
    If req.Status <> 200 Then
        MsgBox req.Status & " - " & req.statusText
        Exit Sub
    End If
    
    'Debug.Print req.responseText
    'ParseWiseOwlVideos req.responseText
    SaveHTMFile req.responseText
    
End Sub

The excel version I am using: Version 16.40 (20081000).
My Mac OS version: macOS Catalina.

1 Answer 1

1

The required object reference is: Microsoft XML, v6.0

Sign up to request clarification or add additional context in comments.

8 Comments

How can I have it installed?
I have been/went at tools>reference but i am not finding this library
What other library can i sue to make http request?
Please watch this tutorial.
I am on a mac. I don't have internet explorer. I have tried with edge. it is still nothing
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.