getHTTP与(excel)VBA? [英] getHTTP with (excel) VBA?
本文介绍了getHTTP与(excel)VBA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在搜索一个excel VBA宏的查询,以获取一个网页html代码作为字符串。
我已经找到一些来源与getHTTPrequest,但我无法注册.net framwork system.dll或链接。
I'm searching for a query for an excel VBA macro to get a webpage html code as string. I've found some source with getHTTPrequest but I can't register .net framwork system.dll or link it.
任何greenhorn友好的片段在那里? ;-)
谢谢!
any greenhorn friendly snippet out there? ;-) Thanks!
推荐答案
足够关闭:如何使用VBA从Excel向服务器发送HTTP POST请求?&mdash甚至是Excel; - )
Close enough: How can I send an HTTP POST request to a server from Excel using VBA? — It's even for Excel ;-)
只需使用GET请求:
objHTTP.Open "GET", URL, False
MSDN:使用WinHttpRequest COM对象 - 使用Visual Basic检索数据
这篇关于getHTTP与(excel)VBA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文