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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,282
Messages
5,836,404
Members
430,425
Latest member
xlsee

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
Top