MSXML Question

jaikman

New Member
Joined
Apr 3, 2013
Messages
1
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.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.

Forum statistics

Threads
1,222,900
Messages
6,168,926
Members
452,227
Latest member
sam1121

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top