Greetings,
I am relatively new to VBA programming. I am trying to pull some information from google maps. I would like to use the following VBA function:
Private Function WebResponse(sURL As String) As String
Dim XmlHttpRequest As Object
Set XmlHttpRequest = CreateObject("MSXML2.XMLHTTP")
XmlHttpRequest.Open "GET", sURL, False
XmlHttpRequest.send
WebResponse = XmlHttpRequest.responseText
End Function
I have this function in a module right now.
The following is in A1:
http://maps.google.com/maps?f=d&sour...on,+D.C.&hl=en
I type "=WebResponse(A1)" in A2 and Excel returns "#VALUE!".
The URL is functioning in my browser. I have tried to use this function on other working URLs as well but they all throw the same error.
Help would be much appreciated!! Thanks in advance.
Nick
Bookmarks