Created
January 16, 2018 10:29
-
-
Save ndthanh/317fe32dad12a1d1cfae74807cc42adb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub testDebugPrint2() | |
Dim fileNum As Integer | |
fileNum = FreeFile() | |
Dim logPath As String | |
logPath = "C:\Users\thanhnguyen\Desktop\hocexcelonline.log" '=> thay bằng đường dẫn của bạn | |
Open logPath For Output As #fileNum | |
Dim xmlhttp As Object | |
Set xmlhttp = CreateObject("MSXML2.serverXMLHTTP") | |
xmlhttp.Open "GET", "https://reqres.in/api/users?page=2", False | |
xmlhttp.send | |
Print #fileNum, xmlhttp.responseText | |
Close #fileNum | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment