Last active
January 19, 2017 12:48
-
-
Save rgherta/bca458df6f429b7235723c0114673593 to your computer and use it in GitHub Desktop.
HTTP request in VBA
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
'Using Microsoft XML, v6.0 | |
Sub postrequest() | |
Dim conn As New XMLHTTP60 | |
conn.Open "post", "https://duckduckgo.com/?q=hello", False | |
conn.send | |
MsgBox conn.statusText | |
ActiveSheet.Range("a1").Value = conn.responseText | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment