I'm trying to send data from a word document to a web page. Ive found some code and pasted it into a new module and saved it, but when I run it I get "compile error, user defined type not defined"
Sub http()
Dim MyRequest As New WinHttpRequest
MyRequest.Open "GET", _
"http://www.google.com"
' Send Request.
MyRequest.Send
'And we get this response
MsgBox MyRequest.ResponseText
End Sub