Hello Everyone, I've been using <ACRONYM title="visual basic for applications">VBA</ACRONYM> for a long time but am far from a programmer. I usually search the web to find code that helps with what I'm trying to accomplish (which is normally automating redundant tasks for my job).
I recently ran across the code to grab stuff from web sites (MSXML) which has really helped out a ton.
I saw a post on this forum that is exactly what I'm encountering, but the response didn't help me (or I didn't know exactly how to interperate it)
We upgraded our PC's to Win7 and excel 2010 just this week and now the macros aren't working. Here's the sub I'm currently using.
Function GetRemoteData(strURL As String) As String
Dim objXMLHTTP As New MSXML.XMLHTTPRequest
objXMLHTTP.Open "GET", strURL, False
objXMLHTTP.send
GetRemoteData = objXMLHTTP.responseText
End Function
I get the error "user defined type not defined" and when I change it to MSXML2.XMLHTTP60 as in your previous post, it runs but I get no data.
I'll be honest, I don't fully understand even what this does other than grab info from the web page
Any assistance would be greatly appreciated.
I recently ran across the code to grab stuff from web sites (MSXML) which has really helped out a ton.
I saw a post on this forum that is exactly what I'm encountering, but the response didn't help me (or I didn't know exactly how to interperate it)
We upgraded our PC's to Win7 and excel 2010 just this week and now the macros aren't working. Here's the sub I'm currently using.
Function GetRemoteData(strURL As String) As String
Dim objXMLHTTP As New MSXML.XMLHTTPRequest
objXMLHTTP.Open "GET", strURL, False
objXMLHTTP.send
GetRemoteData = objXMLHTTP.responseText
End Function
I get the error "user defined type not defined" and when I change it to MSXML2.XMLHTTP60 as in your previous post, it runs but I get no data.
I'll be honest, I don't fully understand even what this does other than grab info from the web page
Any assistance would be greatly appreciated.