Hi all,
I am trying to extract a specific value from a static webpage.
so far I come up with the following script:
Sub Macro1()
my_url = "http://www.investopedia.com/search/default.aspx?q=rog"
Set my_obj = CreateObject("MSXML2.XMLHTTP")
my_obj.Open "GET", my_url, False
my_obj.send
my_var = my_obj.responseText
MsgBox my_var
Set my_obj = Nothing
End Sub
So my_var returning the whole webpage data. But from all that mess I need to find < div class="exchange">NYSE< </< font>div> and return in this case value NYSE?? How can I do that? please help!!!
I am trying to extract a specific value from a static webpage.
so far I come up with the following script:
Sub Macro1()
my_url = "http://www.investopedia.com/search/default.aspx?q=rog"
Set my_obj = CreateObject("MSXML2.XMLHTTP")
my_obj.Open "GET", my_url, False
my_obj.send
my_var = my_obj.responseText
MsgBox my_var
Set my_obj = Nothing
End Sub
So my_var returning the whole webpage data. But from all that mess I need to find < div class="exchange">NYSE< </< font>div> and return in this case value NYSE?? How can I do that? please help!!!