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.
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Watch MrExcel Video

Forum statistics

Threads
1,122,539
Messages
5,596,754
Members
414,097
Latest member
FaeFen

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