[COLOR=darkblue]Sub[/COLOR] GetBitcoinBuyAndSellPrice()
[COLOR=darkblue]Dim[/COLOR] XMLReq [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]New[/COLOR] MSXML2.XMLHTTP60
[COLOR=darkblue]Dim[/COLOR] HTMLDoc [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]New[/COLOR] MSHTML.HTMLDocument
[COLOR=darkblue]Dim[/COLOR] sBuySell [COLOR=darkblue]As[/COLOR] [COLOR=darkblue]String[/COLOR]
XMLReq.Open "GET", "https://coins.co.th/", [COLOR=darkblue]False[/COLOR]
XMLReq.send
[COLOR=darkblue]If[/COLOR] XMLReq.Status <> 200 [COLOR=darkblue]Then[/COLOR]
MsgBox "Error " & XMLReq.Status & ": " & XMLReq.statusText
[COLOR=darkblue]Exit[/COLOR] [COLOR=darkblue]Sub[/COLOR]
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]If[/COLOR]
HTMLDoc.body.innerHTML = XMLReq.responseText
sBuySell = HTMLDoc.getElementById("quote_string").innerText
MsgBox sBuySell, vbInformation
[COLOR=darkblue]Set[/COLOR] XMLReq = [COLOR=darkblue]Nothing[/COLOR]
[COLOR=darkblue]Set[/COLOR] HTMLDoc = [COLOR=darkblue]Nothing[/COLOR]
[COLOR=darkblue]End[/COLOR] [COLOR=darkblue]Sub[/COLOR]