Get a String from json (Vba) -



Get a String from json (Vba) -

i new vba , hope can help me. got url gives text /stream json syntax. "json text" should display in exel. alreday made display string in exel set direktly in code. question now: how string url ?

you can seek this:

dim orequest object set orequest = createobject("winhttp.winhttprequest.5.1") orequest.open "get", "http://www.cboden.de" orequest.send msgbox orequest.responsetext

if behind proxy server, this:

const httprequest_proxysetting_proxy = 2 dim orequest object set orequest = createobject("winhttp.winhttprequest.5.1") orequest.setproxy httprequest_proxysetting_proxy, "http://proxy.intern:8080" orequest.open "get", "http://www.cboden.de" orequest.send msgbox orequest.responsetext

and if want utilize post instead of can seek this:

dim orequest object set orequest = createobject("winhttp.winhttprequest.5.1") orequest.open "post", "http://www.cboden.de/misc/posttest.php" orequest.setrequestheader "content-typ", "application/x-www-form-urlencoded" orequest.send "formularfeld1=123&formularfeld2=test" msgbox orequest.responsetext

if new vba might little bit hard understand ... please google various commands farther informations.

string vba

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -