ublic Function GetTestHTML(Optional ByVal url As String = "https://www.w3schools.com/cssref/trysel.asp") As HTMLDocument
Dim http As New XMLHTTP60
Dim html As New HTMLDocument
Do
With http 'Set http = CreateObject("MSXML2.XMLHttp60")
.Open "GET", url, True
.send
Do Until .readyState = 4
DoEvents
Loop
html.body.innerHTML = .responseText
End With
Loop While html.body.innerHTML = vbNullString
Set GetTestHTML = html
End Function