Function GetHTML(URL As String) As String
Dim HTML As String
With CreateObject("MSXML2.XMLHTTP")
.Open "GET", URL, False
.Send
GetHTML = .ResponseText
End With
End Function
Public Sub get_json_data()
On Error GoTo RefErr:
Debug.Print "========================================================="
Debug.Print GetHTML("http://ya.ru")
RefErr:
MsgBox "Ошибка!"
End