Skip to content

Instantly share code, notes, and snippets.

@iamdionysus
Last active August 29, 2015 14:12
Show Gist options
  • Save iamdionysus/a3c9de1c227b4513c7d0 to your computer and use it in GitHub Desktop.
Save iamdionysus/a3c9de1c227b4513c7d0 to your computer and use it in GitHub Desktop.
Sub test_set_table()
ActiveDocument.Tables(4).Cell(1, 1).Range.Text = "Blah"
End Sub
Sub test_get_http()
Dim result As String
Dim myURL As String
Dim winHttpReq As Object
Set winHttpReq = CreateObject("WinHttp.WinHttpRequest.5.1")
myURL = "http://www.google.com"
winHttpReq.Open "GET", myURL, False
winHttpReq.Send
result = winHttpReq.responseText
Debug.Print result
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment