Goodday the forum. This a question regarding web data grab. GetElementByClassName will not work. Not much good at programming full stop but can loop in Pascal that is about it so I rely heavily on what is on the net. To make sure that it is not a typing error I copied and pasted a vba macro from this site automate web scraping using class with vba | Excel VBA Training Videos
It works for them but not for me.
I have tried
With CreateObject("msxml2.xmlhttp") .Open "GET", Web_URL, False
.send
HTML_Content.body.innerHTML = .responseText
End With
but can only copy the HTML_Content.body.innerHTML into a string variable. The data i am chasing is in the string because i used instring function to count the number of times the class name was used. The string looks like a Total Nightmare and extracting data out of it looks even worse!!! Freaking Fantastic!
I am using Excel 2007 with SP3, I have enabled in the VBA editor References, Microsoft HTML Object Library and Microsoft Internet Controls.
Could it be that I need to enable some further capability within the excel program.
Thanks for your time
MisterZ
It works for them but not for me.
I have tried
With CreateObject("msxml2.xmlhttp") .Open "GET", Web_URL, False
.send
HTML_Content.body.innerHTML = .responseText
End With
but can only copy the HTML_Content.body.innerHTML into a string variable. The data i am chasing is in the string because i used instring function to count the number of times the class name was used. The string looks like a Total Nightmare and extracting data out of it looks even worse!!! Freaking Fantastic!
I am using Excel 2007 with SP3, I have enabled in the VBA editor References, Microsoft HTML Object Library and Microsoft Internet Controls.
Could it be that I need to enable some further capability within the excel program.
Thanks for your time
MisterZ